From ff6a9390f00e58dac25fd7e4a19789992b618533 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 24 May 2006 05:51:10 +0000 Subject: #64893 by beginner, deny access to new accounts for non-administrators --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index e681ebbb3..b6098f00f 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1449,7 +1449,7 @@ function user_view($uid = 0) { global $user; $account = user_load(array('uid' => $uid)); - if ($account === FALSE) { + if ($account === FALSE || ($account->access == 0 && !user_access('administer users'))) { return drupal_not_found(); } // Retrieve and merge all profile fields: diff --git a/modules/user/user.module b/modules/user/user.module index e681ebbb3..b6098f00f 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1449,7 +1449,7 @@ function user_view($uid = 0) { global $user; $account = user_load(array('uid' => $uid)); - if ($account === FALSE) { + if ($account === FALSE || ($account->access == 0 && !user_access('administer users'))) { return drupal_not_found(); } // Retrieve and merge all profile fields: -- cgit v1.2.3