• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/restrictedaction.php
  • Класс: BitrixTasksDispatcherRestrictedAction
  • Вызов: RestrictedAction::canExecute
public function canExecute()
{
	if(!BitrixTasksUtilRestriction::canManageTask())
	{
		$this->errors->add('ACTION_NOT_ALLOWED.RESTRICTED', Loc::getMessage('TASKS_ACTION_NOT_ALLOWED'));
		return false;
	}

	return true;
}