[midgard-commits] r27103 - branches/developers/rambo/midcom_core_nonapcache/midcom/services/auth

rambo midgard-commits at lists.midgard-project.org
Fri Dec 9 10:15:44 CET 2011


Author: rambo
Date: Fri Dec  9 10:15:39 2011
New Revision: 27103
URL: http://trac.midgard-project.org/changeset/27103

Log:
seems there was copy-paste leftover here

Modified:
   branches/developers/rambo/midcom_core_nonapcache/midcom/services/auth/acl.php

Modified: branches/developers/rambo/midcom_core_nonapcache/midcom/services/auth/acl.php
==============================================================================
--- branches/developers/rambo/midcom_core_nonapcache/midcom/services/auth/acl.php	(original)
+++ branches/developers/rambo/midcom_core_nonapcache/midcom/services/auth/acl.php	Fri Dec  9 10:15:39 2011
@@ -1026,7 +1026,8 @@
 
             $user_privileges = $user->get_privileges();
 
-            if (array_key_exists($privilege, $user_privileges))
+            if (   array_key_exists($object_guid, $user_privileges) 
+                && array_key_exists($privilege, $user_privileges[$object_guid])) 
             {
                 self::$_privileges_cache[$cache_key][$privilege] = ($user_privileges[$object_guid][$privilege] === MIDCOM_PRIVILEGE_ALLOW);
                 //debug_add_ap("Cached (after merging \$user_privileges[{$object_guid}][{$privilege}]) value self::\$_privileges_cache[{$cache_key}][{$privilege}]=" . self::$_privileges_cache[$cache_key][$privilege]);


More information about the midgard-commits mailing list