Changeset View
Changeset View
Standalone View
Standalone View
core/units/categories/categories_tag_processor.php
Show First 20 Lines • Show All 2207 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Returns list of categories, that have category add/edit permission | * Returns list of categories, that have category add/edit permission | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
function AllowedCategoriesJSON($params) | function AllowedCategoriesJSON($params) | ||||
{ | { | ||||
if ($this->Application->RecallVar('user_id') == USER_ROOT) { | if ( $this->Application->permissionCheckingDisabled() ) { | ||||
$categories = true; | $categories = true; | ||||
} | } | ||||
else { | else { | ||||
$object = $this->getObject($params); | $object = $this->getObject($params); | ||||
/* @var $object kDBItem */ | /* @var $object kDBItem */ | ||||
$perm_helper = $this->Application->recallObject('PermissionsHelper'); | $perm_helper = $this->Application->recallObject('PermissionsHelper'); | ||||
/* @var $perm_helper kPermissionsHelper */ | /* @var $perm_helper kPermissionsHelper */ | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |