r84268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84267‎ | r84268 | r84269 >
Date:21:31, 18 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Fix borked r84266.
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2251,7 +2251,7 @@
22522252 public function isAllowedAny( /*...*/ ){
22532253 $permissions = func_get_args();
22542254 foreach( $permissions as $permission ){
2255 - if( $this->isAllowedInternal( $permission ) ){
 2255+ if( $this->isAllowed( $permission ) ){
22562256 return true;
22572257 }
22582258 }
@@ -2265,7 +2265,7 @@
22662266 public function isAllowedAll( /*...*/ ){
22672267 $permissions = func_get_args();
22682268 foreach( $permissions as $permission ){
2269 - if( !$this->isAllowedInternal( $permission ) ){
 2269+ if( !$this->isAllowed( $permission ) ){
22702270 return false;
22712271 }
22722272 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84266Follow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only...happy-melon21:07, 18 March 2011

Status & tagging log