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:04:01 +00:00
parent 332f0a1843
commit 8de6c7691a

View File

@ -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;