$this->addJoinConds( $joinConds );
// Don't show hidden names
- if ( !$this->getUser()->isAllowed( 'hideuser' ) ) {
+ if ( !$this->getPermissionManager()->userHasRight( $this->getUser(), 'hideuser' ) ) {
$this->addWhere( 'ipb_deleted = 0 OR ipb_deleted IS NULL' );
}
}
* @return bool
*/
public function userCanSeeRevDel() {
- return $this->getUser()->isAllowedAny(
+ return $this->getPermissionManager()->userHasAnyRight(
+ $this->getUser(),
'deletedhistory',
'deletedtext',
'suppressrevision',