* Admin: global categories showed private categories of other users

This commit is contained in:
Ralf Becker 2012-06-27 16:04:51 +00:00
parent ebb5244a7a
commit 52d7d6bbcf

View File

@ -505,7 +505,8 @@ class categories
}
// Read access to global categories
if ($needed == EGW_ACL_READ && (array_intersect(explode(',',$category['owner']),$this->global_owners) || $no_acl_check) &&
if ($needed == EGW_ACL_READ && (array_intersect(explode(',',$category['owner']),$this->global_owners) ||
$no_acl_check && $category['access'] == 'public') && // no_acl_check only means public cats
($category['appname'] == self::GLOBAL_APPNAME || $category['appname'] == $this->app_name))
{
//echo "<p>".__METHOD__."($needed,$category[name]) access because global via memberships</p>\n";