mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix up find as you type for the invite into PM function
allow mods to remove users from a PM
This commit is contained in:
@@ -195,6 +195,10 @@ class Guardian
|
||||
is_staff? && user.created_at >= 7.days.ago
|
||||
end
|
||||
|
||||
def can_remove_allowed_users?(topic)
|
||||
is_staff?
|
||||
end
|
||||
|
||||
# Support for ensure_{blah}! methods.
|
||||
def method_missing(method, *args, &block)
|
||||
if method.to_s =~ /^ensure_(.*)\!$/
|
||||
|
||||
Reference in New Issue
Block a user