Fixes view members of group even if not in group. Closes #1086
authorPascal Corpet <pascal.corpet@m4x.org>
Tue, 8 Jun 2010 20:47:14 +0000 (22:47 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Tue, 8 Jun 2010 20:47:27 +0000 (22:47 +0200)
ChangeLog
classes/xnetsession.php

index 64a5a31..7bb8b4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,9 @@ Bug/Wish:
         - #993: Enables survey for oranges                                 -Car
         - #1002: Lets the user set promo interval in both ways             -Car
 
+    * XnetGrp:
+        - #1086: Fixes view members of group even if not in group          -Car
+
     * XnetEvents:
         - #737: Admin can cancel subscription to an event                  -Car
 
index 15dda7b..f642780 100644 (file)
@@ -64,6 +64,8 @@ class XnetSession extends XorgSession
                 if ($globals->asso('pub') != 'private') {
                     $perms->addFlag('groupannu');
                 }
+            } else if ($globals->asso('pub') == 'public') {
+                $perms->addFlag('groupannu');
             }
             if ($globals->asso('cat') == 'Promotions') {
                 $perms->addFlag('groupannu');