From 3db657e09abf354416cad4d42030167c0b8585f6 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 15 Sep 2015 00:18:27 +0200 Subject: Bug 1185241: Logging out when or after impersonating a user doesn't delete cookies from the logincookies table correctly r=dkl --- Bugzilla/Auth/Persist/Cookie.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') 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) { -- cgit v1.2.3-24-g4f1b