mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:05:15 +08: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
|
end
|
||||||
|
|
||||||
def regular?
|
def regular?
|
||||||
!(admin? || moderator?)
|
!staff?
|
||||||
end
|
end
|
||||||
|
|
||||||
def password=(password)
|
def password=(password)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user