From 32f4dfd2fb72d5d82d51f97b7bea225059a0dbc5 Mon Sep 17 00:00:00 2001 From: Leonard Garvey Date: Sat, 18 May 2013 16:00:35 +1000 Subject: [PATCH] DRY up the user model slightly regular? is just the inverse of staff? --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 572a1e7084a..f2d94f0b6a7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -307,7 +307,7 @@ class User < ActiveRecord::Base end def regular? - !(admin? || moderator?) + !staff? end def password=(password)