• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/controller/worktime.php
  • Класс: BitrixTimemanControllerWorktime
  • Вызов: Worktime::configureActions
public function configureActions()
{
	$configureActions = parent::configureActions();
	$restOnlyScope = new Scope(Scope::REST);
	$actionsForRest = [
		'start',
		'stop',
		'relaunch',
		'pause',
	];
	foreach ($actionsForRest as $name)
	{
		$configureActions[$name] = [
			'-prefilters' => [Scope::class],
			'+prefilters' => [$restOnlyScope,],
		];
	}

	return $configureActions;
}