aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 09:19:24 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 09:19:24 +0200
commit5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1 (patch)
treeaf435dec1ee861928a1d3d8fa146bed2672d86aa /phpBB/includes/functions.php
parent5f05a8a8f8ccb435de774ccbc670f2bdb79d6bf8 (diff)
parent8eb9ce50b08a9905c449109edcde98c8a4d108e0 (diff)
downloadforums-5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1.tar
forums-5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1.tar.gz
forums-5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1.tar.bz2
forums-5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1.tar.xz
forums-5f8fb38b529ef0b04fcfbaaee940b29e7a5e92b1.zip
Merge pull request #3957 from Zoddo/ticket/14200
[ticket/14200] Allow hidden users to see himself on viewonline * Zoddo/ticket/14200: [ticket/14200] Allow hidden users to see himself on viewonline
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
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']);
}