From 22a6fb895a41a246e9e71bd0c28abef9bfa06bc8 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 1 Jul 2009 18:32:50 +0000 Subject: Refs #1058: Using validated metadata for new user permission check. Correctly allows for enable() / disable(), but still not ideal. git-svn-id: https://code.elgg.org/elgg/trunk@3377 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine') diff --git a/engine/lib/users.php b/engine/lib/users.php index 46636548b..e5fb7320a 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1425,8 +1425,9 @@ { if ( (($entity->disable_reason == 'new_user') || ( - $entity->last_action == 0 && $entity->last_login == 0 - )) + // if this isn't set at all they're a "new user" + !$entity->validated + )) && (!isloggedin())) return true; -- cgit v1.2.3