Method: Credential#is_request_permitted?

Defined in:
app/models/credential.rb

#is_request_permitted?(controller, action) ⇒ Boolean

Returns:

  • (Boolean)


115
116
117
118
# File 'app/models/credential.rb', line 115

def is_request_permitted?(controller, action)
  # NOTE: Highly rudimentary, but until we want to do the public side and proper ACLs, this will work.
  user_type == 'Employee'
end