mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
check the cat filter. If you have no read rights for any cats (and with that resources) set the cat-filter to null. As cat_id is enforced for resources by UI, you should not ret any results, which is expected if you have no read rights.
This commit is contained in:
parent
b5e33eab09
commit
ea6ad0129a
@ -90,6 +90,9 @@ class bo_resources
|
||||
{
|
||||
$filter['cat_id'] = array_keys($readcats);
|
||||
}
|
||||
// if there is no catfilter -> this means you have no rights, so set the cat filter to null
|
||||
if (!isset($filter['cat_id']) || empty($filter['cat_id'])) $filter['cat_id'] = NUll;
|
||||
|
||||
if ($query['show_bookable'])
|
||||
{
|
||||
$filter['bookable'] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user