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:
Sam
2013-06-18 17:17:01 +10:00
parent 2eb1cc220c
commit 80c42753e1
17 changed files with 119 additions and 26 deletions

View File

@ -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_(.*)\!$/