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