2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-09 22:19:33 +08:00

FEATURE: allow staff to send multiple invites to same email

This commit is contained in:
Arpit Jalan 2014-07-29 23:27:08 +05:30
parent b942436d7b
commit f571abfaaf
5 changed files with 37 additions and 1 deletions

View file

@ -214,6 +214,10 @@ class Guardian
user.admin?
end
def can_send_multiple_invites?(user)
user.staff?
end
def can_see_private_messages?(user_id)
is_admin? || (authenticated? && @user.id == user_id)
end