aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-01 18:32:50 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-01 18:32:50 +0000
commit22a6fb895a41a246e9e71bd0c28abef9bfa06bc8 (patch)
tree77a3c38dafc9da451e4233bf0ebe4a8976f75632 /engine
parentba4a4ca4f87076fdb2e8b2849a15b6759501f330 (diff)
downloadelgg-22a6fb895a41a246e9e71bd0c28abef9bfa06bc8.tar.gz
elgg-22a6fb895a41a246e9e71bd0c28abef9bfa06bc8.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php5
1 files changed, 3 insertions, 2 deletions
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;