Skip to content

Commit

Permalink
Merge pull request #2565 from RotherOSS/issue-#2563-agent_preferences
Browse files Browse the repository at this point in the history
Issue #2563: set up the admin navigation favourites
  • Loading branch information
bschmalhofer authored Oct 9, 2023
2 parents c067ed8 + af2f0f8 commit 312e01a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/docker/quick_setup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 312e01a

Please sign in to comment.