Sha256: ca73dcda5706a23ef64871a6447c6e26d30957509a25390abca598904aba1cdf

Contents?: true

Size: 196 Bytes

Versions: 11

Compression:

Stored size: 196 Bytes

Contents

# frozen_string_literal: true

module Maquina
  class InvitationPolicy < ApplicationPolicy
    def new?
      management? || admin?
    end

    def create?
      new? || admin?
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
maquina-0.7.2 app/policies/maquina/invitation_policy.rb
maquina-0.7.1 app/policies/maquina/invitation_policy.rb
maquina-0.5.2 app/policies/maquina/invitation_policy.rb
maquina-0.5.1 app/policies/maquina/invitation_policy.rb
maquina-0.4.0 app/policies/maquina/invitation_policy.rb
maquina-0.3.0 app/policies/maquina/invitation_policy.rb
maquina-0.2.5 app/policies/maquina/invitation_policy.rb
maquina-0.2.4 app/policies/maquina/invitation_policy.rb
maquina-0.2.3 app/policies/maquina/invitation_policy.rb
maquina-0.2.2 app/policies/maquina/invitation_policy.rb
maquina-0.2.1 app/policies/maquina/invitation_policy.rb