Index: branches/5.0.x/core/kernel/application.php =================================================================== diff -u -r12877 -r12948 --- branches/5.0.x/core/kernel/application.php (.../application.php) (revision 12877) +++ branches/5.0.x/core/kernel/application.php (.../application.php) (revision 12948) @@ -1,6 +1,6 @@ recallObject('PermissionsHelper'); /* @var $perm_helper kPermissionsHelper */ - if ($perm_helper->CheckUserPermission($user, 'CATEGORY.MODIFY', 0, 0)) { + if ($perm_helper->CheckUserPermission($user, 'CATEGORY.MODIFY', 0, $this->ModuleInfo['Core']['RootCat'])) { // user can edit cms blocks $editing_mode = $this->GetVar('editing_mode'); define('EDITING_MODE', $editing_mode ? $editing_mode : EDITING_MODE_BROWSE); Index: branches/5.0.x/core/units/content/content_eh.php =================================================================== diff -u -r12734 -r12948 --- branches/5.0.x/core/units/content/content_eh.php (.../content_eh.php) (revision 12734) +++ branches/5.0.x/core/units/content/content_eh.php (.../content_eh.php) (revision 12948) @@ -1,6 +1,6 @@ Application->RecallVar('user_id'); // user can change top category - $perm_status = $perm_helper->CheckUserPermission($user_id, 'CATEGORY.MODIFY', 0, 0); + $top_category = $this->Application->findModule('Name', 'Core', 'RootCat'); + $perm_status = $perm_helper->CheckUserPermission($user_id, 'CATEGORY.MODIFY', 0, $top_category); return $perm_helper->finalizePermissionCheck($event, $perm_status); }