diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-07-08 06:12:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-07-08 06:12:39 +0000 |
commit | 9a56e93c3d8cd5f99fff1757e48a05e85cd20e33 (patch) | |
tree | d66cb4f968def39d98e1b91ba2df70904b72f8fc /modules | |
parent | d3904c05cc5e850786a3ab5d5be5da8639441b51 (diff) | |
download | brdo-9a56e93c3d8cd5f99fff1757e48a05e85cd20e33.tar.gz brdo-9a56e93c3d8cd5f99fff1757e48a05e85cd20e33.tar.bz2 |
- Patch #9125 by Morbus: remove access users permission. Will bring it back later.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 21 | ||||
-rw-r--r-- | modules/user/user.module | 21 |
2 files changed, 16 insertions, 26 deletions
diff --git a/modules/user.module b/modules/user.module index 9e36b313e..8570b465f 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1141,22 +1141,17 @@ function user_view($uid = 0) { } else { if ($account = user_load(array('uid' => $uid, 'status' => 1))) { - if (user_access('access users')) { - // Retrieve and merge all profile fields: - $fields = array(); - foreach (module_list() as $module) { - if ($data = module_invoke($module, 'user', 'view', '', $account)) { - foreach ($data as $category => $content) { - $fields[$category] .= $content; - } + // Retrieve and merge all profile fields: + $fields = array(); + foreach (module_list() as $module) { + if ($data = module_invoke($module, 'user', 'view', '', $account)) { + foreach ($data as $category => $content) { + $fields[$category] .= $content; } } - - print theme('page', theme('user_profile', $account, $fields), $account->name); - } - else { - drupal_access_denied(); } + + print theme('page', theme('user_profile', $account, $fields), $account->name); } else { drupal_not_found(); diff --git a/modules/user/user.module b/modules/user/user.module index 9e36b313e..8570b465f 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1141,22 +1141,17 @@ function user_view($uid = 0) { } else { if ($account = user_load(array('uid' => $uid, 'status' => 1))) { - if (user_access('access users')) { - // Retrieve and merge all profile fields: - $fields = array(); - foreach (module_list() as $module) { - if ($data = module_invoke($module, 'user', 'view', '', $account)) { - foreach ($data as $category => $content) { - $fields[$category] .= $content; - } + // Retrieve and merge all profile fields: + $fields = array(); + foreach (module_list() as $module) { + if ($data = module_invoke($module, 'user', 'view', '', $account)) { + foreach ($data as $category => $content) { + $fields[$category] .= $content; } } - - print theme('page', theme('user_profile', $account, $fields), $account->name); - } - else { - drupal_access_denied(); } + + print theme('page', theme('user_profile', $account, $fields), $account->name); } else { drupal_not_found(); |