From: Cash Costello Date: Sat, 17 Dec 2011 13:11:36 +0000 (-0500) Subject: Fixes #4217 user validation by email now respects decisions by other plugins X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=53e6eb8ad8c71ed04e33b32024e3e2ea4e6e2c18;p=lorea%2Felgg.git Fixes #4217 user validation by email now respects decisions by other plugins --- diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php index 576e12247..ea59a2e7b 100644 --- a/mod/uservalidationbyemail/start.php +++ b/mod/uservalidationbyemail/start.php @@ -75,6 +75,11 @@ function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) { return $value; } + // has the user already been validated? + if (elgg_get_user_validation_status($user->guid) == true) { + return $value; + } + // disable user to prevent showing up on the site // set context so our canEdit() override works elgg_push_context('uservalidationbyemail_new_user');