• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/user.php
  • Класс: CAllUser
  • Вызов: CAllUser::IsAdmin
public function IsAdmin()
{
	if ($this->admin === null)
	{
		if (
			Option::get('main', 'controller_member', 'N') == 'Y'
			&& Option::get('main', '~controller_limited_admin', 'N') == 'Y'
		)
		{
			$this->admin = ($this->GetParam("CONTROLLER_ADMIN") === true);
		}
		else
		{
			$this->admin = ($this->GetParam("ADMIN") === true);
		}
	}
	return $this->admin;
}