mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-15 16:20:03 +00:00
Add config option to disable all UI config features for non admin users.
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user