From fc2b9ab2a1615874a26b0d9e921a54856df379ad Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 15 May 2006 23:19:43 +0000 Subject: Bug 337681: When trying to impersonate someone, the UI displays the password field when using the ENV method (with user_info_class="Env,CGI") - Patch by Max Kanat-Alexander r=LpSolit a=justdave --- Bugzilla/Auth.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index d650658f5..f528b96de 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -108,7 +108,10 @@ sub can_change_password { sub can_login { my ($self) = @_; - return $self->{_info_getter}->can_login; + my $getter = $self->{_info_getter}->{successful}; + $getter = $self->{_info_getter} + if (!$getter || $getter->isa('Bugzilla::Auth::Login::Cookie')); + return $getter->can_login; } sub can_logout { -- cgit v1.2.3-24-g4f1b