mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Add spam control basics
This commit is contained in:
parent
e10d04d22e
commit
51a0e1127e
8 changed files with 101 additions and 12 deletions
|
@ -935,6 +935,12 @@ func (h *Handler) Invite(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Spam checks.
|
||||
if mail.IsBlockedEmailDomain(email) {
|
||||
response.WriteForbiddenError(w)
|
||||
return
|
||||
}
|
||||
|
||||
if len(u.RefID) > 0 {
|
||||
// Ensure they have access to this organization
|
||||
accounts, err2 := h.Store.Account.GetUserAccounts(ctx, u.RefID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue