Index: trunk/core/units/general/cat_tag_processor.php =================================================================== diff -u -r7855 -r8369 --- trunk/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 7855) +++ trunk/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 8369) @@ -185,7 +185,26 @@ return $display_original && ($perm_value == 1) && $this->Application->GetVar($this->Prefix.'.original_id'); } + + /** + * Checks if user have one of required permissions + * + * @param Array $params + * @return bool + */ + function HasPermission($params) + { + $perm_helper =& $this->Application->recallObject('PermissionsHelper'); + /* @var $perm_helper kPermissionsHelper */ + $params['raise_warnings'] = 0; + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + $params['cat_id'] = $object->isLoaded() ? $object->GetDBField('CategoryId') : $this->Application->GetVar('m_cat_id'); + return $perm_helper->TagPermissionCheck($params, $this->getPrefixSpecial().'_HasPermission'); + } + } ?> \ No newline at end of file