Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -28,6 +28,10 @@ |
29 | 29 | 'right-contestant' => 'Participate in contests', |
30 | 30 | 'right-contestjudge' => 'Judge contest submissions', |
31 | 31 | |
| 32 | + 'action-contestadmin' => 'manage contests', |
| 33 | + 'action-contestant' => 'participate in contests', |
| 34 | + 'action-contestjudge' => 'judge contest submissions', |
| 35 | + |
32 | 36 | // Groups |
33 | 37 | 'group-contestadmin' => 'Contest admins', |
34 | 38 | 'group-contestadmin-member' => '{{GENDER:$1|contest administrator}}', |
Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | $this->outputHeader(); |
63 | 63 | |
64 | 64 | // This will throw exceptions if there's a problem |
65 | | - $this->userCanExecute( $this->getUser() ); |
| 65 | + $this->checkExecutePermissions( $this->getUser() ); |
66 | 66 | |
67 | 67 | if ( $this->getRequest()->wasPosted() && $this->getUser()->matchEditToken( $this->getRequest()->getVal( 'wpEditToken' ) ) ) { |
68 | 68 | $this->showForm(); |