diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-11 22:48:27 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-11 22:48:27 +0000 |
commit | 23bccfd1c8731823205354768e5cf7a61e42a395 (patch) | |
tree | c94803df446ebafcb6e8d7270527bf3923002835 /includes | |
parent | bc44805f3cae8e18a300db9fa3469ff0daf17ac1 (diff) | |
download | brdo-23bccfd1c8731823205354768e5cf7a61e42a395.tar.gz brdo-23bccfd1c8731823205354768e5cf7a61e42a395.tar.bz2 |
- #4166: Respect 'access userlist' permission for profile data.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index b93623e96..287b38e36 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -927,7 +927,12 @@ function format_name($object) { $name = $object->name; } - $output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.'))); + if (user_access('access user profiles')) { + $output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.'))); + } + else { + $output = $name; + } } else if ($object->name) { // Sometimes modules display content composed by people who are |