forked from extern/egroupware
Use a different method of filtering out global categories
This commit is contained in:
parent
283a2a01ff
commit
52f3dd9ed2
@ -324,10 +324,10 @@ class admin_categories
|
||||
}
|
||||
if($query['col_filter']['app'])
|
||||
{
|
||||
$globalcat = false;
|
||||
$filter['appname'] = $query['col_filter']['app'];
|
||||
}
|
||||
$cats = new categories($filter['owner'],$query['appname']);
|
||||
$globalcat = $globalcat && isset($GLOBALS['egw_info']['user']['apps']['admin']) ? 'all_no_acl' : $globalcat; // ignore acl only for admins
|
||||
$globalcat = isset($GLOBALS['egw_info']['user']['apps']['admin']) ? 'all_no_acl' : $globalcat; // ignore acl only for admins
|
||||
$rows = $cats->return_sorted_array($query['start'],false,$query['search'],$query['sort'],$query['order'],$globalcat,$parent=0,true,$filter);
|
||||
$count = $cats->total_records;
|
||||
foreach($rows as $key => &$row)
|
||||
|
Loading…
Reference in New Issue
Block a user