diff options
author | lpsolit%gmail.com <> | 2009-04-11 23:33:24 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-04-11 23:33:24 +0000 |
commit | a589e55a6f061ffbc223ccc99be1ff6052cf41bf (patch) | |
tree | 54aab3828565605b0fe1fbd97a5249fa5ac12b4a /checksetup.pl | |
parent | Bug 486006 - importxml.pl must not use format_time() for deadlines (diff) | |
download | bugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.gz bugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.bz2 bugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.zip |
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-x | checksetup.pl | 4 |
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 ########################################################################### |