summaryrefslogtreecommitdiff
path: root/app/models/api_user.rb
blob: 2efe1cbcd40629d456e7f5fb223bcfc159717f99 (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 ApiMonitorUser < ApiUser
  def is_monitor?
    true
  end
end

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