/** * @throws Exception */ private function CheckAdminGrant() { if (!$this->app->GetUserAuthorizationStrategy()->HasAdminGrant($this->app->GetCurrentUser())) { throw new Exception(GetCaptions('UTF-8')->GetMessageString('AccessDenied')); } }