Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
70757345
Commit
70757345
authored
Sep 24, 2010
by
Reed Loden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 598698 - Remove unneeded selectrow_array() call in Bugzilla::Install::make_admin()
[r=mkanat a=mkanat]
parent
46681b3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Install.pm
Bugzilla/Install.pm
+3
-5
No files found.
Bugzilla/Install.pm
View file @
70757345
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment