aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2015-10-10 16:26:11 +0200
committerZoddo <zoddo.ino@gmail.com>2015-10-10 16:33:40 +0200
commit8eb9ce50b08a9905c449109edcde98c8a4d108e0 (patch)
tree800cba633e3f572717c23e2f42186ef806c43871 /phpBB/viewonline.php
parentdef21f27a2c4f619ca5c051da5c3a4fb19b73074 (diff)
downloadforums-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/viewonline.php')
-rw-r--r--phpBB/viewonline.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 583e297682..87848f4485 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -187,7 +187,7 @@ while ($row = $db->sql_fetchrow($result))
if (!$row['session_viewonline'])
{
- $view_online = ($auth->acl_get('u_viewonline')) ? true : false;
+ $view_online = ($auth->acl_get('u_viewonline') || $row['user_id'] === $user->data['user_id']) ? true : false;
$logged_hidden_online++;
$username_full = '<em>' . $username_full . '</em>';