Stages::canEditGroupStages

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Stages
  4. canEditGroupStages
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/publicaction/task/stages.php
  • Класс: BitrixTasksDispatcherPublicActionTaskStages
  • Вызов: Stages::canEditGroupStages
private function canEditGroupStages($groupId)
{
	if ($this->checkSonetInstalled())
	{
		$right = CSocNetUserToGroup::GetUserRole(UtilUser::getId(), $groupId);
		if ($right != SONET_ROLES_OWNER && $right != SONET_ROLES_MODERATOR)
		{
			$this->errors->add(
				'ACCESS_DENIED',
				Loc::getMessage('STAGES_ERROR_ACCESS_DENIED_STAGES')
			);
		}
	}
}

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