summaryrefslogtreecommitdiff
path: root/app/models/unauthenticated_user.rb
blob: ba6470a93e4f4702af0311aaf6ab639d1c909570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# The nil object for the user class
class UnauthenticatedUser < Object

  # will probably want something here to return service level as  APP_CONFIG[:service_levels][0] but not sure how will be accessing.

  def is_admin?
    false
  end

  def effective_service_level
    ServiceLevel.new id: APP_CONFIG[:unauthenticated_service_level]
  end
end