Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit c532961

Browse files
author
Joe Kent
committed
Merge pull request #4547 from deadlybutter/4514
Adds under 13 check to all opt in signups
2 parents 4362df7 + 62f521f commit c532961

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/modules/dosomething/dosomething_signup/dosomething_signup.module

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,11 @@ function dosomething_signup_mbp_request($account, $node, $opt_in) {
524524
return;
525525
}
526526

527+
// Don't sign users under 13 up for messaging
528+
if (dosomething_user_is_under_thirteen($account)) {
529+
return;
530+
}
531+
527532
// Gather mbp params for the signup.
528533
$params = dosomething_signup_get_mbp_params($account, $node, $opt_in);
529534
// Send campaign mbp request.

0 commit comments

Comments
 (0)