mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
SECURITY: Remove disposable invite feature
This commit is contained in:
parent
9fb180f839
commit
f1a6449e4b
6 changed files with 4 additions and 192 deletions
|
@ -271,10 +271,6 @@ class Guardian
|
|||
user.admin?
|
||||
end
|
||||
|
||||
def can_create_disposable_invite?(user)
|
||||
user.admin?
|
||||
end
|
||||
|
||||
def can_send_multiple_invites?(user)
|
||||
user.staff?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue