Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | if ( !$rev ) { |
85 | 85 | $this->dieUsage( "There is no revision ID $oldid", 'missingrev' ); |
86 | 86 | } |
87 | | - if ( !$rev->userCan( Revision::DELETED_TEXT ) ) { |
| 87 | + if ( !$rev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) { |
88 | 88 | $this->dieUsage( "You don't have permission to view deleted revisions", 'permissiondenied' ); |
89 | 89 | } |
90 | 90 | |