Index: branches/5.2.x/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r14601 -r14602 --- branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 14601) +++ branches/5.2.x/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 14602) @@ -1,6 +1,6 @@ addFilter('parent_filter', 'ParentId = '.$parent_cat_id); + $object->addFilter('parent_filter', '%1$s.ParentId = '.$parent_cat_id); } } - $object->addFilter('perm_filter', 'PermId = 1'); // check for CATEGORY.VIEW permission + $object->addFilter('perm_filter', TABLE_PREFIX . 'PermCache.PermId = 1'); // check for CATEGORY.VIEW permission if ($this->Application->RecallVar('user_id') != USER_ROOT) { // apply permission filters to all users except "root" $groups = explode(',',$this->Application->RecallVar('UserGroups')); foreach ($groups as $group) { - $view_filters[] = 'FIND_IN_SET('.$group.', acl)'; + $view_filters[] = 'FIND_IN_SET('.$group.', ' . TABLE_PREFIX . 'PermCache.ACL)'; } $view_filter = implode(' OR ', $view_filters); $object->addFilter('perm_filter2', $view_filter);