summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlogintoboggan.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index 1711f39..d6c86e7 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -132,7 +132,8 @@ function logintoboggan_form_alter($form_id, &$form) {
$user = user_load(array('uid' => arg(1)));
$id = logintoboggan_validating_id();
$in_pre_auth_role = in_array($id, array_keys($user->roles));
- if ($in_pre_auth_role) {
+ // Messages aren't necessary if pre-auth role is authenticated user.
+ if ($in_pre_auth_role && $id != 2) {
if ((variable_get('user_register', 1) == 2)) {
$form['account']['status']['#description'] = t('If this user was created using the "Immediate Login" feature of LoginToboggan, and they are also awaiting adminstrator approval on their account, you must remove them from the site\'s pre-authorized role in the "Roles" section below, or they will not receive authenticated user permissions!');
}