Permalink
Browse files

Code cleanup

  • Loading branch information...
1 parent 887777e commit 08128b1e0b3bea378cad9dd48b9cecea1bf3c042 @TimothyJones TimothyJones committed Dec 27, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 objects/game.php
View
@@ -314,8 +314,8 @@ public function isMemberInfoHidden()
* - The game is finished
* - The user is a moderator who isn't in the game
*/
- if ( $this->anon == 'No' || $this->phase == 'Finished' || ($User->type['Moderator'] && !isset($this->Members->ByUserID[$User->id])) )
- {
+ if ( $this->anon == 'No' || $this->phase == 'Finished' || $this->hasModeratorPowers())
+ {
$this->isMemberInfoHidden = false;
}
else

0 comments on commit 08128b1

Please sign in to comment.