mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Back end - temporary boosting of trust levels
This commit is contained in:
@@ -137,6 +137,10 @@ class Guardian
|
||||
user && is_staff?
|
||||
end
|
||||
|
||||
def can_change_trust_level?(user)
|
||||
can_administer?(user)
|
||||
end
|
||||
|
||||
def can_block_user?(user)
|
||||
user && is_staff? && not(user.staff?)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user