[dev] Patch for group perms

Jason Rust jrust at rustyparts.com
Tue Jan 6 21:37:45 PST 2004


Here is a patch for perms.  It fixes a bug in group permissions where it
was trying to look up the group name using the group name thus breaking
the functionality.
-Jason
-------------- next part --------------
Index: lib/Perms.php
===================================================================
RCS file: /repository/horde/lib/Perms.php,v
retrieving revision 1.63
diff -u -r1.63 Perms.php
--- lib/Perms.php	1 Jan 2004 15:15:53 -0000	1.63
+++ lib/Perms.php	7 Jan 2004 05:24:35 -0000
@@ -318,7 +318,7 @@
 
             $composite_perm = null;
             foreach ($permission->data['groups'] as $group => $perm) {
-                if ($groups->userIsInGroup($user, $groups->getGroupName($group))) {
+                if ($groups->userIsInGroup($user, $group)) {
                     if (is_null($composite_perm)) {
                         $composite_perm = 0;
                     }


More information about the dev mailing list