Exemplo n.º 1
0
 /**
  * Checks if the user is banned/inactive/suspended
  *
  * @param  Phanbook\Models\Users $user
  * @return bool
  */
 public function checkUserFlags(Users $user)
 {
     if ($user->getStatus() != Users::STATUS_ACTIVE) {
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * Checks if the user is banned/inactive/suspended
  *
  * @param  Phanbook\Models\Users $user
  * @return bool
  */
 public function checkUserFlags(Users $user)
 {
     return $user->getStatus() == Users::STATUS_ACTIVE;
 }