mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
Add staff? to user model.
This commit is contained in:
parent
17e421235b
commit
1b88c9f149
1 changed files with 4 additions and 0 deletions
|
@ -197,6 +197,10 @@ class User < ActiveRecord::Base
|
||||||
groups.exists? :id => Group::REFEREES
|
groups.exists? :id => Group::REFEREES
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def staff?
|
||||||
|
groups.exists? :id => Group::STAFF
|
||||||
|
end
|
||||||
|
|
||||||
def caster?
|
def caster?
|
||||||
groups.exists? :id => Group::CASTERS
|
groups.exists? :id => Group::CASTERS
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue