aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-11 06:44:49 +0000
committermkanat%bugzilla.org <>2006-08-11 06:44:49 +0000
commitfb079a1bcf1a9eb442dbd746d787d573a89fdc4a (patch)
tree644d05740726c4e746f0f77b3cb8b66e49100f39 /relogin.cgi
parentBug 348070: An arrayref is always "true" - Patch by Frédéric Buclin <LpSoli... (diff)
downloadbugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.tar.gz
bugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.tar.bz2
bugzilla-fb079a1bcf1a9eb442dbd746d787d573a89fdc4a.zip
Bug 347291: Make Bugzilla::User use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-xrelogin.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/relogin.cgi b/relogin.cgi
index 566a1df37..e47dbe003 100755
--- a/relogin.cgi
+++ b/relogin.cgi
@@ -125,7 +125,7 @@ elsif ($action eq 'begin-sudo') {
# Get & verify the target user (the user who we will be impersonating)
my $target_user =
- Bugzilla::User->new_from_login($cgi->param('target_login'));
+ new Bugzilla::User({ name => $cgi->param('target_login') });
unless (defined($target_user)
&& $target_user->id
&& $user->can_see_user($target_user))