X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseModeration.php;h=a575e51f79e01abe35d25b4cc90af1abe924742d;hb=e1863951986ba5be173758324a00652bc5af870c;hp=1261eebb1cb1c66d5f13c7ff214505ffe13ea179;hpb=18f54f4425cd849c857ffd3ec00e08cf31f4adec;p=friendica.git diff --git a/src/Module/BaseModeration.php b/src/Module/BaseModeration.php index 1261eebb1c..a575e51f79 100644 --- a/src/Module/BaseModeration.php +++ b/src/Module/BaseModeration.php @@ -1,6 +1,6 @@ app->isSiteAdmin()) { - throw new HTTPException\ForbiddenException($this->t('You don\'t have access to administration pages.')); + if (!$this->session->isModerator()) { + throw new HTTPException\ForbiddenException($this->t('You don\'t have access to moderation pages.')); } if ($this->session->getSubManagedUserId()) { - throw new HTTPException\ForbiddenException($this->t('Submanaged account can\'t access the administration pages. Please log back in as the main account.')); + throw new HTTPException\ForbiddenException($this->t('Submanaged account can\'t access the moderation pages. Please log back in as the main account.')); } }