From af2f0f8037d94df9035ea9f47e506e583a3677c2 Mon Sep 17 00:00:00 2001 From: bernhard Date: Mon, 9 Oct 2023 18:28:28 +0200 Subject: [PATCH] Issue #2563: set up the admin navigation favourites for the create user Andi Admin --- bin/docker/quick_setup.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/docker/quick_setup.pl b/bin/docker/quick_setup.pl index 52c1cd522e..3c1a3eb529 100755 --- a/bin/docker/quick_setup.pl +++ b/bin/docker/quick_setup.pl @@ -834,6 +834,14 @@ sub AddAdminUser { return 0, "Could not give $Group privileges to the user '$Login'" unless $Success; } + # Looks like generic preferences can't be passed via AddUser(), + # so call SetPreferences() explicitly + $UserObject->SetPreferences( + UserID => $UserID, + Key => 'AdminNavigationBarFavourites', + Value => qq{["AdminSystemConfiguration","AdminPackageManager","AdminSupportDataCollector"]}, + ); + # looks good return 1, "Admin user: http://localhost:$Param{HTTPPort}/otobo/index.pl user: $Login pw: $Login"; }