Handler::handle

  1. Bitrix24 API (v. 23.675.0)
  2. timeman
  3. Handler
  4. handle
  • Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/usecase/schedule/violationrules/update/handler.php
  • Класс: Bitrix\Timeman\UseCase\Schedule\ViolationRules\Update\Handler
  • Вызов: Handler::handle
public function handle(ViolationForm $violationForm)
{
	if (!$violationForm->scheduleId || !$violationForm->entityCode
		|| !$this->getPermissionManager()->canUpdateViolationRules($violationForm->entityCode))
	{
		return (new Result())->addError(new Error(Loc::getMessage('TM_WORKTIME_RESULT_ERROR_PERMISSION_ACCESS_DENIED')));
	}

	return DependencyManager::getInstance()->getViolationRulesService()->update($violationForm);
}

Добавить комментарий