Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 85909a7

Browse files
apple502jKenny2github
authored andcommitted
Call checkReadOnly when displaying special pages
1 parent 5ae588f commit 85909a7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

SpecialHandleReports.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public function execute( $par ) {
1212
$out->addModuleStyles( 'ext.report' );
1313
$out->setPageTitle( wfMessage('report-handling-title')->escaped() );
1414
$out->setIndexPolicy( 'noindex' );
15+
$this->checkReadOnly();
1516
$user = $this->getUser();
1617
if ( !$this->userCanExecute( $user ) ) {
1718
$this->displayRestrictionError();

SpecialReport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public function execute( $par ) {
1111
$out = $this->getOutput();
1212
$out->setPageTitle( wfMessage('report-title')->escaped() );
1313
$out->addModules( 'ext.report' );
14+
$this->checkReadOnly();
1415
if ( !$user->isAllowed( 'report' ) ) {
1516
$out->addHTML(Html::rawElement(
1617
'p',

0 commit comments

Comments
 (0)