Index: trunk/phase3/includes/Article.php |
— | — | @@ -1519,15 +1519,9 @@ |
1520 | 1520 | $wgOut->errorPage( 'rcpatroldisabled', 'rcpatroldisabledtext' ); |
1521 | 1521 | return; |
1522 | 1522 | } |
1523 | | - |
1524 | | - # Check permissions |
1525 | | - if( !$wgUser->isAllowed( 'patrol' ) ) { |
1526 | | - $wgOut->permissionRequired( 'patrol' ); |
1527 | | - return; |
1528 | | - } |
1529 | 1523 | |
1530 | 1524 | # Check permissions |
1531 | | - $permission_errors = $this->mTitle->getUserPermissionsErrors( 'delete', $wgUser ); |
| 1525 | + $permission_errors = $this->mTitle->getUserPermissionsErrors( 'patrol', $wgUser ); |
1532 | 1526 | |
1533 | 1527 | if (count($permission_errors)>0) |
1534 | 1528 | { |