summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-09-15 00:18:27 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-09-15 00:18:27 +0200
commit3db657e09abf354416cad4d42030167c0b8585f6 (patch)
tree652a86592fab8b85d53e77565e93fcf274ad2016 /Bugzilla/Auth
parenta72defcf1b5f54c7da369c8fac49db1b350b6a0d (diff)
downloadbugzilla-3db657e09abf354416cad4d42030167c0b8585f6.tar.gz
bugzilla-3db657e09abf354416cad4d42030167c0b8585f6.tar.xz
Bug 1185241: Logging out when or after impersonating a user doesn't delete cookies from the logincookies table correctly
r=dkl
Diffstat (limited to 'Bugzilla/Auth')
-rw-r--r--Bugzilla/Auth/Persist/Cookie.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Persist/Cookie.pm b/Bugzilla/Auth/Persist/Cookie.pm
index 877d1907e..904de3699 100644
--- a/Bugzilla/Auth/Persist/Cookie.pm
+++ b/Bugzilla/Auth/Persist/Cookie.pm
@@ -94,7 +94,7 @@ sub logout {
my $cgi = Bugzilla->cgi;
my $input = Bugzilla->input_params;
$param = {} unless $param;
- my $user = $param->{user} || Bugzilla->user;
+ my $user = $param->{user} || Bugzilla->sudoer || Bugzilla->user;
my $type = $param->{type} || LOGOUT_ALL;
if ($type == LOGOUT_ALL) {