forked from extern/egroupware
Admin - Can't only delete categories for the selected app. Globals only deletable through Admin
This commit is contained in:
parent
a67675d0f6
commit
65e54052c7
@ -426,10 +426,10 @@ class admin_categories
|
|||||||
$row['class'] .= ' rowNoDelete';
|
$row['class'] .= ' rowNoDelete';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Can only edit (via context menu) Categories for the selected app (backend restriction)
|
// Can only edit or delete (via context menu) Categories for the selected app (backend restriction)
|
||||||
if($row['appname'] != $query['appname'])
|
if($row['appname'] != $query['appname'])
|
||||||
{
|
{
|
||||||
$row['class'] .= ' rowNoEdit ';
|
$row['class'] .= ' rowNoEdit rowNoDelete ';
|
||||||
}
|
}
|
||||||
$readonlys['nm']["edit[$row[id]]"] = !self::$acl_edit;
|
$readonlys['nm']["edit[$row[id]]"] = !self::$acl_edit;
|
||||||
$readonlys['nm']["add[$row[id]]"] = !self::$acl_add_sub;
|
$readonlys['nm']["add[$row[id]]"] = !self::$acl_add_sub;
|
||||||
|
Loading…
Reference in New Issue
Block a user