From 77d59cb2afbfd490d22bda080eee2483692fa572 Mon Sep 17 00:00:00 2001 From: simplefl Date: Sat, 11 Apr 2015 15:37:47 +0200 Subject: [PATCH] Add staff? to user model. --- app/models/user.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 86d0da7..5110deb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -197,6 +197,10 @@ class User < ActiveRecord::Base groups.exists? :id => Group::REFEREES end + def staff? + groups.exists? :id => Group::STAFF + end + def caster? groups.exists? :id => Group::CASTERS end