File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use crate::db::logs::log_comment_body;
55use crate :: db:: operations:: models:: * ;
66use crate :: db:: Pool ;
77use crate :: mail:: manager:: send_email;
8+ use crate :: mail:: manager:: subscribe_nda;
89use crate :: mail:: templates:: Template ;
910use crate :: rules:: engine:: * ;
1011use crate :: rules:: RuleContext ;
@@ -196,6 +197,9 @@ pub async fn accept_invitation(
196197 ) ) ?;
197198 let connection = pool. get ( ) ?;
198199 let user_profile = internal:: user:: user_profile_by_uuid ( & connection, & user. user_uuid ) ?;
200+ if group_name == "nda" {
201+ subscribe_nda ( & user_profile. email )
202+ }
199203 accept ( & connection, group_name, user) ?;
200204 drop ( connection) ;
201205 add_group_to_profile ( cis_client, group_name. to_owned ( ) , user_profile. profile ) . await
You can’t perform that action at this time.
0 commit comments