• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/user.php
  • Класс: CAllUser
  • Вызов: CAllUser::HasNoAccess
public function HasNoAccess()
{
	if (!$this->IsAuthorized())
	{
		return true;
	}

	$filePath = MainContext::getCurrent()->getRequest()->getScriptFile();

	return !$this->CanDoFileOperation('fm_view_file', [SITE_ID, $filePath]);
}