Add config option to disable all UI config features for non admin users.

This commit is contained in:
kristian
2022-09-11 16:12:10 -07:00
parent 46420d4f15
commit 6d644f5459
4 changed files with 358 additions and 350 deletions

View File

@@ -107,7 +107,8 @@ const store = new Vuex.Store({
perms.allowWriteToDisk = false;
}
// Disable everything
if (appConfig.disableConfiguration) {
if (appConfig.disableConfiguration
|| (appConfig.disableConfigurationForNonAdmin && !isUserAdmin())) {
perms.allowWriteToDisk = false;
perms.allowSaveLocally = false;
perms.allowViewConfig = false;