• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskitem.php
  • Класс: CTaskItem
  • Вызов: CTaskItem::getAllowedActions
public function getAllowedActions($bReturnAsStrings = false)
{
	if ($bReturnAsStrings)
	{
		return ($this->getAllowedActionsAsStrings());
	}

	if ($this->arTaskAllowedActions !== null)
	{
		return ($this->arTaskAllowedActions);
	}

	// Lazy load and cache allowed actions list
	try
	{
		$this->arTaskAllowedActions = self::getAllowedActionsArrayInternal(
			$this->executiveUserId,
			$this->getData($bSpecialChars = false)
		);
	}
	catch (TasksException $e)
	{
		return [];
	}

	return $this->arTaskAllowedActions;
}