mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +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
332f0a1843
commit
8de6c7691a
@ -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