summaryrefslogtreecommitdiff
path: root/app/models/api_user.rb
blob: d80a4d1b819c3d211b2e167e58c7b795f7924d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

class ApiUser < AnonymousUser
end

#
# A user that has limited admin access, to be used
# for running monitor tests against a live production
# installation.
#
class ApiTestUser < ApiUser
  def is_test?
    true
  end
end

#
# Not yet supported:
#
#class ApiAdminUser < ApiUser
#  def is_admin?
#    true
#  end
#end