mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
Add ability to give users a title. Show them under usernames beside posts. Needs love from a designer.
This commit is contained in:
@ -133,6 +133,10 @@ class Guardian
|
||||
can_administer?(user) && not(user.moderator?)
|
||||
end
|
||||
|
||||
def can_grant_title?(user)
|
||||
user && is_staff?
|
||||
end
|
||||
|
||||
def can_block_user?(user)
|
||||
user && is_staff? && not(user.staff?)
|
||||
end
|
||||
|
Reference in New Issue
Block a user