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:
parent
b942436d7b
commit
f571abfaaf
5 changed files with 37 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue