diff --git a/includes/Specials/SpecialManageWiki.php b/includes/Specials/SpecialManageWiki.php index 1909ce9ea..72b2eef88 100644 --- a/includes/Specials/SpecialManageWiki.php +++ b/includes/Specials/SpecialManageWiki.php @@ -47,21 +47,6 @@ public function execute( $par ) { $module = 'core'; } - if ( !$this->getContext()->getUser()->isAllowed( 'managewiki-' . $module ) ) { - $out->setPageTitle( $this->msg( 'managewiki-link-' . $module . '-view' )->text() ); - if ( $module !== 'permissions' || $module !== 'namespaces' ) { - $out->addHTML( - Html::errorBox( $this->msg( 'managewiki-error-nopermission' )->escaped() ) - ); - $out->addWikiMsg( "managewiki-header-{$module}-view" ); - } - } else { - $out->setPageTitle( $this->msg( 'managewiki-link-' . $module )->text() ); - if ( $module !== 'permissions' || $module !== 'namespaces' ) { - $out->addWikiMsg( "managewiki-header-{$module}" ); - } - } - $additional = $par[1] ?? ''; $filtered = $par[2] ?? $par[1] ?? ''; @@ -273,4 +258,7 @@ public function reusableFormSubmission( array $formData, HTMLForm $form ) { protected function getGroupName() { return 'wikimanage'; } + + private function renderErrorMessage() { + } }