summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2010-09-24 23:06:34 +0200
committerReed Loden <reed@reedloden.com>2010-09-24 23:06:34 +0200
commit707573450030f45f33ac464d393749d32c55ae73 (patch)
tree74e2f9cd16f69296f81e446a4fcbb11e79cc56a7
parent46681b3ff9da9dae48d6b7b4d82a40ad2e476587 (diff)
downloadbugzilla-707573450030f45f33ac464d393749d32c55ae73.tar.gz
bugzilla-707573450030f45f33ac464d393749d32c55ae73.tar.xz
Bug 598698 - Remove unneeded selectrow_array() call in Bugzilla::Install::make_admin()
[r=mkanat a=mkanat]
-rw-r--r--Bugzilla/Install.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm
index 57b1904b5..9d4426bbe 100644
--- a/Bugzilla/Install.pm
+++ b/Bugzilla/Install.pm
@@ -345,14 +345,12 @@ sub make_admin {
$user = ref($user) ? $user
: new Bugzilla::User(login_to_id($user, THROW_ERROR));
- my $admin_group = new Bugzilla::Group({ name => 'admin' });
-
- # Admins get explicit membership and bless capability for the admin group
- $dbh->selectrow_array("SELECT id FROM groups WHERE name = 'admin'");
-
my $group_insert = $dbh->prepare(
'INSERT INTO user_group_map (user_id, group_id, isbless, grant_type)
VALUES (?, ?, ?, ?)');
+
+ # Admins get explicit membership and bless capability for the admin group
+ my $admin_group = new Bugzilla::Group({ name => 'admin' });
# These are run in an eval so that we can ignore the error of somebody
# already being granted these things.
eval {