[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-bugs
Subject:    [Bricolage-Bugs] [Bug 335] New: Category->list returns invalid groups.
From:       bugzilla-daemon () thepirtgroup ! com
Date:       2003-02-28 7:24:54
[Download RAW message or body]

           Summary: Category->list returns invalid groups.
           Product: Bricolage
           Version: 1.5.0 - Dev for 1.6.0
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: API
        AssignedTo: david@wheeler.net
        ReportedBy: joaop@co.sapo.pt


While testing groups and category permissions, sometimes i was denied access to
some category, mostly after including that category into a group with DENY
permissions and removing from that groups afterwards.

This was caused by the SQL query in _do_list() in Category.pm not checking
if member.active = 1 :


Index: lib/Bric/Biz/Category.pm
===================================================================
RCS file: /cvsroot/bricolage/bricolage/lib/Bric/Biz/Category.pm,v
retrieving revision 1.43
diff -w -u -r1.43 Category.pm
--- lib/Bric/Biz/Category.pm    20 Feb 2003 21:04:57 -0000      1.43
+++ lib/Bric/Biz/Category.pm    28 Feb 2003 12:29:11 -0000
@@ -1344,6 +1344,8 @@
         push @params, 1;
     }

+    push @wheres, 'm.active = 1';
+
     # Set up the other query properties.
     while (my ($k, $v) = each %$params) {
        if ($k eq 'id' or $k eq 'parent_id') {

http://bugzilla.bricolage.cc/show_bug.cgi?id=335


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bricolage-Bugs mailing list
Bricolage-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic