]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4217 user validation by email now respects decisions by other plugins
authorCash Costello <cash.costello@gmail.com>
Sat, 17 Dec 2011 13:11:36 +0000 (08:11 -0500)
committerCash Costello <cash.costello@gmail.com>
Sat, 17 Dec 2011 13:11:36 +0000 (08:11 -0500)
mod/uservalidationbyemail/start.php

index 576e12247d231efe79835bd9350947d4e8381ea0..ea59a2e7b069f9be0b5f68a9012ac28f2528d317 100644 (file)
@@ -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');