FEATURE: Allow add group member endpoint to skip invite emails (#29962)

This commit is contained in:
Mark VanLandingham
2024-11-27 11:33:09 -06:00
committed by GitHub
parent b4ef3456d9
commit 8c311dcbd5
2 changed files with 23 additions and 1 deletions

View File

@ -413,7 +413,12 @@ class GroupsController < ApplicationController
emails.each do |email|
begin
Invite.generate(current_user, email: email, group_ids: [group.id])
Invite.generate(
current_user,
email: email,
group_ids: [group.id],
skip_email: params[:skip_email].to_s == "true",
)
rescue RateLimiter::LimitExceeded => e
return(
render_json_error(