From a589e55a6f061ffbc223ccc99be1ff6052cf41bf Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 11 Apr 2009 23:33:24 +0000 Subject: Bug 487769: checksetup.pl can no longer create versions in TestProduct due to insufficient privileges (checksetup.pl fails) - Patch by Max Kanat-Alexander r/a=LpSolit --- checksetup.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index da368a822..53a709ebf 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -96,6 +96,7 @@ exit if $switch{'check-modules'}; # get a cryptic perl error about the missing module. require Bugzilla; +require Bugzilla::User; require Bugzilla::Config; import Bugzilla::Config qw(:admin); @@ -196,6 +197,9 @@ Bugzilla::Install::DB::update_table_definitions(\%old_params); Bugzilla::Install::update_system_groups(); +# "Log In" as the fake superuser who can do everything. +Bugzilla->set_user(Bugzilla::User->super_user); + ########################################################################### # Create --SETTINGS-- users can adjust ########################################################################### -- cgit v1.2.3-24-g4f1b