Class: Maquina::InvitationPolicy

Inherits:
ApplicationPolicy show all
Defined in:
app/policies/maquina/invitation_policy.rb

Instance Method Summary collapse

Methods inherited from ApplicationPolicy

#destroy?, #edit?, #index?, #new_modal?, #show?, #update?

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/policies/maquina/invitation_policy.rb', line 9

def create?
  new? || admin?
end

#new?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'app/policies/maquina/invitation_policy.rb', line 5

def new?
  management? || admin?
end