The code below is in two places in the user.module. It appeared late in the Drupal 5 release, and is now in Drupal 6 (and 7?).

          // Consider users created by an administrator as already logged in, so
          // anonymous users can view the profile (if allowed).
          if (empty($array['access']) && user_access('administer users')) {
            $array['access'] = time();
          }

This code creates a problem for my website where users are only created by administrators: as soon as a new account is created, it appears in the "Members Online" block (even though the newly created member is not online), and the account also shows up as having accessed the website (when it really hasn't). In the case of my website, some of my members do not have internet access, so will never log into the website (it is a Search & Rescue website where we maintain a membership roster and other things).

I would greatly appreciate having a configuration option where the above behavior can be enabled or disabled, or else removal of this code since it seems to be handling an extremely rare situation with little benefit? Up until now, I've been commenting out the two blocks of code in user.module, but hacking Drupal core is not good. :)

Regards

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.