]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 337681: When trying to impersonate someone, the UI displays the password field...
authorlpsolit%gmail.com <>
Mon, 15 May 2006 23:19:43 +0000 (23:19 +0000)
committerlpsolit%gmail.com <>
Mon, 15 May 2006 23:19:43 +0000 (23:19 +0000)
Bugzilla/Auth.pm

index d650658f57d0b170644c32775868a51014a1289d..f528b96ded0ddb9f0c92d914188d3daa48e48460 100644 (file)
@@ -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 {