Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function userCanChangeRights( $user, $checkIfSelf = true ) {
- $available = $this->changeableGroups();
- return !empty( $available['add'] )
- || !empty( $available['remove'] )
- || ( ( $this->isself || !$checkIfSelf ) &&
- ( !empty( $available['add-self'] )
- || !empty( $available['remove-self'] ) ) );
Advertisement
Add Comment
Please, Sign In to add comment