]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseModeration.php
Merge pull request #13599 from Raroun/Fix_for_Pull_Request_#13596_missing_a_hidden...
[friendica.git] / src / Module / BaseModeration.php
index 3de46b319c6a87261c34e1c2d1c091291dd781e0..8fa9733eb6165bdae085e8b137f6f98852df7667 100644 (file)
@@ -82,12 +82,12 @@ abstract class BaseModeration extends BaseModule
                        }
                }
 
-               if (!$this->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'],