diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-01 18:32:50 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-01 18:32:50 +0000 |
commit | 22a6fb895a41a246e9e71bd0c28abef9bfa06bc8 (patch) | |
tree | 77a3c38dafc9da451e4233bf0ebe4a8976f75632 /engine/lib | |
parent | ba4a4ca4f87076fdb2e8b2849a15b6759501f330 (diff) | |
download | elgg-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/lib')
-rw-r--r-- | engine/lib/users.php | 5 |
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;
|