X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseModeration.php;h=a735e916870fbe366629fbc2893ddb3046bffb42;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=3de46b319c6a87261c34e1c2d1c091291dd781e0;hpb=4faf08c0643d3e6bbe2a0a77be2ff8c1dbea4d5c;p=friendica.git diff --git a/src/Module/BaseModeration.php b/src/Module/BaseModeration.php index 3de46b319c..a735e91687 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.')); } } @@ -107,6 +107,7 @@ abstract class BaseModeration extends BaseModule $aside_sub = [ 'information' => [$this->t('Information'), [ 'overview' => ['moderation', $this->t('Overview'), 'overview'], + 'reports' => ['moderation/reports', $this->t('Reports'), 'overview'], ]], 'configuration' => [$this->t('Configuration'), [ 'users' => ['moderation/users', $this->t('Users'), 'users'],