Add staff? to user model.

This commit is contained in:
simplefl 2015-04-11 15:37:47 +02:00
parent adbd4554d2
commit 4284366680

View file

@ -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