Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:lock: Fix, correct call of `isUserAdmin()` M(#590)

Alicia Sykes33a2693c7fc7
diff --git a/src/store.js b/src/store.js
index da176930..1fa246cd 100644
--- a/src/store.js
+++ b/src/store.js
@@ -89,7 +89,7 @@ const store = new Vuex.Store({
perms.allowSaveLocally = false;
}
// Disable saving changes to disk, only
- if (appConfig.preventWriteToDisk || !isUserAdmin) {
+ if (appConfig.preventWriteToDisk || !isUserAdmin()) {
perms.allowWriteToDisk = false;
}
// Legacy Option: Will be removed in V 2.1.0