示例#1
0
 /**
  * Check if the user is allowed.
  *
  * @param  \Arcanesoft\Contracts\Auth\Models\User  $user
  *
  * @return bool
  */
 private function isAllowed($user)
 {
     return $user->isAdmin() || $user->isModerator();
 }