isAdmin && !$this->reflector->hasAnnotation('NoSubAdminRequired') && !$this->isSubAdmin && !$this->reflector->hasAnnotation('AuthorizedAdminSetting')) { throw new NotSubAdminException(); } } /** * @param Controller $controller * @param string $methodName * @param \Exception $exception * @throws \Exception * @return Response */ public function afterException($controller, $methodName, \Exception $exception) { if ($exception instanceof NotSubAdminException) { throw new OCSException($exception->getMessage(), Http::STATUS_FORBIDDEN); } throw $exception; } } et-better-devices-wipe-action-wording'>Jerome-Herbinet-better-devices-wipe-action-wording Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Exceptions/TwoFactorAuthRequiredException.php
blob: 8873b2c9f85c63ea5e660498cc0f9370a75fffee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13