From: lpsolit%gmail.com <> Date: Mon, 15 May 2006 23:19:43 +0000 (+0000) Subject: Bug 337681: When trying to impersonate someone, the UI displays the password field... X-Git-Tag: bugzilla-2.23.2~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc2b9ab2a1615874a26b0d9e921a54856df379ad;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index d650658f57..f528b96ded 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 {