Commit 9a56e93c authored by Dries's avatar Dries

- Patch #9125 by Morbus: remove access users permission. Will bring it back later.

parent d3904c05
......@@ -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();
......
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment