mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DRY up the user model slightly
regular? is just the inverse of staff?
This commit is contained in:
@ -307,7 +307,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def regular?
|
||||
!(admin? || moderator?)
|
||||
!staff?
|
||||
end
|
||||
|
||||
def password=(password)
|
||||
|
Reference in New Issue
Block a user