Index: branches/unlabeled/unlabeled-1.20.2/core/units/general/helpers/permissions_helper.php =================================================================== diff -u -r6705 -r6842 --- branches/unlabeled/unlabeled-1.20.2/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 6705) +++ branches/unlabeled/unlabeled-1.20.2/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 6842) @@ -337,7 +337,7 @@ */ function CheckPermission($name, $type = 1, $cat_id = null) { - $user_id = $this->Application->GetVar('u_id'); + $user_id = $this->Application->RecallVar('user_id'); return $this->CheckUserPermission($user_id, $name, $type, $cat_id); } @@ -379,7 +379,7 @@ WHERE (PermId = '.$perm_id.') AND (CategoryId = '.$cat_id.')'; $view_filters = Array(); - if ($user_id == $this->Application->GetVar('u_id')) { + if ($user_id == $this->Application->RecallVar('user_id')) { $groups = explode(',', $this->Application->RecallVar('UserGroups')); } else { // checking not current user @@ -450,7 +450,7 @@ return 2; } - if ($owner_id == $this->Application->GetVar('u_id')) { + if ($owner_id == $this->Application->RecallVar('user_id')) { // user is item's OWNER -> check this permissions first $live_modify = $this->CheckPermission($perm_prefix.'.OWNER.MODIFY', ptCATEGORY, $category_id); if ($live_modify) {