libertarian-party/partynest

View on GitHub
app/policies/users/session_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Users::SessionPolicy < ApplicationPolicy
  def create?
    account&.user.nil?
  end

  def destroy?
    !account.nil?
  end
end