diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-23 20:18:38 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-23 20:18:38 +0200 |
commit | 6e46df26a8bc47c08ba622df07540d73cb8c7c1f (patch) | |
tree | b6f84792432e6d61d9c2b0ba643c2531c3a66bb3 /apps/settings/lib/Middleware | |
parent | ad0731a63c52ea07bff23eb72fc0479e2be76142 (diff) | |
download | nextcloud-server-6e46df26a8bc47c08ba622df07540d73cb8c7c1f.tar.gz nextcloud-server-6e46df26a8bc47c08ba622df07540d73cb8c7c1f.zip |
Unify settings middleware with others
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/lib/Middleware')
-rw-r--r-- | apps/settings/lib/Middleware/SubadminMiddleware.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/Middleware/SubadminMiddleware.php b/apps/settings/lib/Middleware/SubadminMiddleware.php index 7fa30c8e26c..41020ab0a85 100644 --- a/apps/settings/lib/Middleware/SubadminMiddleware.php +++ b/apps/settings/lib/Middleware/SubadminMiddleware.php @@ -35,7 +35,7 @@ use OCP\IL10N; /** * Verifies whether an user has at least subadmin rights. - * To bypass use the `@NoSubadminRequired` annotation + * To bypass use the `@NoSubAdminRequired` annotation */ class SubadminMiddleware extends Middleware { /** @var bool */ @@ -65,7 +65,7 @@ class SubadminMiddleware extends Middleware { * @throws \Exception */ public function beforeController($controller, $methodName) { - if (!$this->reflector->hasAnnotation('NoSubadminRequired')) { + if (!$this->reflector->hasAnnotation('NoSubAdminRequired')) { if (!$this->isSubAdmin) { throw new NotAdminException($this->l10n->t('Logged in user must be a subadmin')); } |