r103600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103599‎ | r103600 | r103601 >
Date:15:56, 18 November 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
added action messages and fixed auth check
Modified paths:
  • /trunk/extensions/Contest/Contest.i18n.php (modified) (history)
  • /trunk/extensions/Contest/specials/SpecialEditContest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/Contest.i18n.php
@@ -28,6 +28,10 @@
2929 'right-contestant' => 'Participate in contests',
3030 'right-contestjudge' => 'Judge contest submissions',
3131
 32+ 'action-contestadmin' => 'manage contests',
 33+ 'action-contestant' => 'participate in contests',
 34+ 'action-contestjudge' => 'judge contest submissions',
 35+
3236 // Groups
3337 'group-contestadmin' => 'Contest admins',
3438 'group-contestadmin-member' => '{{GENDER:$1|contest administrator}}',
Index: trunk/extensions/Contest/specials/SpecialEditContest.php
@@ -61,7 +61,7 @@
6262 $this->outputHeader();
6363
6464 // This will throw exceptions if there's a problem
65 - $this->userCanExecute( $this->getUser() );
 65+ $this->checkExecutePermissions( $this->getUser() );
6666
6767 if ( $this->getRequest()->wasPosted() && $this->getUser()->matchEditToken( $this->getRequest()->getVal( 'wpEditToken' ) ) ) {
6868 $this->showForm();

Status & tagging log