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:
Klaus Leithoff 2010-07-08 15:01:40 +00:00
parent b5e33eab09
commit ea6ad0129a

View File

@ -90,6 +90,9 @@ class bo_resources
{ {
$filter['cat_id'] = array_keys($readcats); $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']) if ($query['show_bookable'])
{ {
$filter['bookable'] = true; $filter['bookable'] = true;