Fix borked r84266.
This commit is contained in:
parent
ac5751ee48
commit
374d7e7278
1 changed files with 2 additions and 2 deletions
|
|
@ -2251,7 +2251,7 @@ class User {
|
|||
public function isAllowedAny( /*...*/ ){
|
||||
$permissions = func_get_args();
|
||||
foreach( $permissions as $permission ){
|
||||
if( $this->isAllowedInternal( $permission ) ){
|
||||
if( $this->isAllowed( $permission ) ){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -2265,7 +2265,7 @@ class User {
|
|||
public function isAllowedAll( /*...*/ ){
|
||||
$permissions = func_get_args();
|
||||
foreach( $permissions as $permission ){
|
||||
if( !$this->isAllowedInternal( $permission ) ){
|
||||
if( !$this->isAllowed( $permission ) ){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue