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
blob: 8873b2c9f85c63ea5e660498cc0f9370a75fffee (
plain)