summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-04-12 01:33:24 +0200
committerlpsolit%gmail.com <>2009-04-12 01:33:24 +0200
commita589e55a6f061ffbc223ccc99be1ff6052cf41bf (patch)
tree54aab3828565605b0fe1fbd97a5249fa5ac12b4a /checksetup.pl
parent0e4b2ce5a8e14a95d0eac6776731bcb37fec2741 (diff)
downloadbugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.gz
bugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.xz
Bug 487769: checksetup.pl can no longer create versions in TestProduct due to insufficient privileges (checksetup.pl fails) - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r/a=LpSolit
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl4
1 files changed, 4 insertions, 0 deletions
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
###########################################################################