Index: trunk/core/units/general/helpers/permissions_helper.php =================================================================== diff -u -N -r5183 -r5186 --- trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5183) +++ trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5186) @@ -351,12 +351,12 @@ $perm_value = 0; $groups = $this->Application->RecallVar('UserGroups'); foreach ($cat_hierarchy as $category_id) { - $sql = 'SELECT PermissionValue + $sql = 'SELECT SUM(PermissionValue) FROM '.TABLE_PREFIX.'Permissions WHERE Permission = "'.$name.'" AND CatId = '.$category_id.' AND GroupId IN ('.$groups.') AND Type = '.$type; $res = $this->Conn->GetOne($sql); if ($res !== false) { - $perm_value = $res; + $perm_value = $res ? 1 : 0; break; } }