diff options
author | Zoddo <zoddo.ino@gmail.com> | 2015-10-10 16:26:11 +0200 |
---|---|---|
committer | Zoddo <zoddo.ino@gmail.com> | 2015-10-10 16:33:40 +0200 |
commit | 8eb9ce50b08a9905c449109edcde98c8a4d108e0 (patch) | |
tree | 800cba633e3f572717c23e2f42186ef806c43871 /phpBB/includes | |
parent | def21f27a2c4f619ca5c051da5c3a4fb19b73074 (diff) | |
download | forums-8eb9ce50b08a9905c449109edcde98c8a4d108e0.tar forums-8eb9ce50b08a9905c449109edcde98c8a4d108e0.tar.gz forums-8eb9ce50b08a9905c449109edcde98c8a4d108e0.tar.bz2 forums-8eb9ce50b08a9905c449109edcde98c8a4d108e0.tar.xz forums-8eb9ce50b08a9905c449109edcde98c8a4d108e0.zip |
[ticket/14200] Allow hidden users to see himself on viewonline
PHPBB3-14200
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 80d6e22bb7..4fb2da7a72 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4299,7 +4299,7 @@ function obtain_users_online_string($online_users, $item_id = 0, $item = 'forum' $row['username'] = '<em>' . $row['username'] . '</em>'; } - if (!isset($online_users['hidden_users'][$row['user_id']]) || $auth->acl_get('u_viewonline')) + if (!isset($online_users['hidden_users'][$row['user_id']]) || $auth->acl_get('u_viewonline') || $row['user_id'] === $user->data['user_id']) { $user_online_link[$row['user_id']] = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']); } |