mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Only admins can delete super-global or app-level global categories, regardless of owner.
This commit is contained in:
parent
718dc25815
commit
c4861e1194
@ -371,11 +371,13 @@ class admin_categories
|
|||||||
}
|
}
|
||||||
else if (!$GLOBALS['egw_info']['user']['apps']['admin'])
|
else if (!$GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
{
|
{
|
||||||
if(!$cats->check_perms(EGW_ACL_EDIT, $row['id']))
|
if(!$cats->check_perms(EGW_ACL_EDIT, $row['id']) || !self::$acl_edit)
|
||||||
{
|
{
|
||||||
$row['class'] .= ' rowNoEdit';
|
$row['class'] .= ' rowNoEdit';
|
||||||
}
|
}
|
||||||
if(!$cats->check_perms(EGW_ACL_DELETE, $row['id']))
|
if(!$cats->check_perms(EGW_ACL_DELETE, $row['id']) || !self::$acl_delete ||
|
||||||
|
// Only admins can delete globals
|
||||||
|
$cats->is_global($row['id']) && !$GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
{
|
{
|
||||||
$row['class'] .= ' rowNoDelete';
|
$row['class'] .= ' rowNoDelete';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user