aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-04-12 21:00:24 +0200
committerNils Adermann <naderman@naderman.de>2010-05-14 02:27:37 +0200
commitcb642cff1175a4c381e4dd9e5348e44cc7e33f9d (patch)
treeac4f7f46e1b5f215897dd999e019ac0abbf6b7ee /phpBB/includes/db/postgres.php
parent03d50a2e83cc631779a7574acd4db8b77f29d547 (diff)
downloadforums-cb642cff1175a4c381e4dd9e5348e44cc7e33f9d.tar
forums-cb642cff1175a4c381e4dd9e5348e44cc7e33f9d.tar.gz
forums-cb642cff1175a4c381e4dd9e5348e44cc7e33f9d.tar.bz2
forums-cb642cff1175a4c381e4dd9e5348e44cc7e33f9d.tar.xz
forums-cb642cff1175a4c381e4dd9e5348e44cc7e33f9d.zip
[ticket/9526] If an admin changes a user's 'user_allow_viewonline' flag to 'hide me' the admin usually wants that user to be hidden immediately. We therefore have to update his session if one exists.
In the UCP this is not necessary, because there is code in $user->setup() that updates the session table on the next page reload. Since we cannot tell if the user generally wants to be hidden or the user only wants to be hidden for one session, we only update the session table when setting the flag to 'hide me', but not 'show me' - equivalent to how it works in the UCP. If the user is a bot we however also update the session when setting the flag to 'show me' because bots cannot login at all. PHPBB3-9526
Diffstat (limited to 'phpBB/includes/db/postgres.php')
0 files changed, 0 insertions, 0 deletions