summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-28 12:40:13 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-28 12:40:13 +0000
commit8447307ed22f756779bd39a8e38a9ae19632ccb6 (patch)
tree9d4748b386b5f56a784601863ba051342fe201ab /modules/user.module
parentcb49e19e9ed2e90a4ece7a5479a4f6e3d342925f (diff)
downloadbrdo-8447307ed22f756779bd39a8e38a9ae19632ccb6.tar.gz
brdo-8447307ed22f756779bd39a8e38a9ae19632ccb6.tar.bz2
#48714, theme_user_picture should take "access user profiles" in to account, patch by frjo
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user.module b/modules/user.module
index 56e0beff1..d22ad64f6 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -629,7 +629,7 @@ function theme_user_picture($account) {
if (isset($picture)) {
$alt = t('%user\'s picture', array('%user' => $account->name ? $account->name : variable_get('anonymous', 'Anonymous')));
$picture = theme('image', $picture, $alt, $alt, '', false);
- if (!empty($account->uid)) {
+ if (!empty($account->uid) && user_access('access user profiles')) {
$picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE);
}