mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
DRY up the user model slightly
regular? is just the inverse of staff?
This commit is contained in:
parent
7cf3f16d62
commit
32f4dfd2fb
@ -307,7 +307,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def regular?
|
||||
!(admin? || moderator?)
|
||||
!staff?
|
||||
end
|
||||
|
||||
def password=(password)
|
||||
|
Loading…
Reference in New Issue
Block a user