summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-24 05:51:10 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-24 05:51:10 +0000
commitff6a9390f00e58dac25fd7e4a19789992b618533 (patch)
tree9de6972b01b55d601b2944c41899c3a515a1799d
parentd80a410bb0aca4656df75414c7d797b805586235 (diff)
downloadbrdo-ff6a9390f00e58dac25fd7e4a19789992b618533.tar.gz
brdo-ff6a9390f00e58dac25fd7e4a19789992b618533.tar.bz2
#64893 by beginner, deny access to new accounts for non-administrators
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
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: