Krenair

MediaWiki's UserrightsPage::userCanChangeRights

Apr 3rd, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1.     public function userCanChangeRights( $user, $checkIfSelf = true ) {
  2.         $available = $this->changeableGroups();
  3.         return !empty( $available['add'] )
  4.             || !empty( $available['remove'] )
  5.             || ( ( $this->isself || !$checkIfSelf ) &&
  6.                 ( !empty( $available['add-self'] )
  7.                  || !empty( $available['remove-self'] ) ) );
Advertisement
Add Comment
Please, Sign In to add comment