mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-16 08:15:46 +00:00
🔒 Fix, correct call of isUserAdmin() M(#590)
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ const store = new Vuex.Store({
|
|||||||
perms.allowSaveLocally = false;
|
perms.allowSaveLocally = false;
|
||||||
}
|
}
|
||||||
// Disable saving changes to disk, only
|
// Disable saving changes to disk, only
|
||||||
if (appConfig.preventWriteToDisk || !isUserAdmin) {
|
if (appConfig.preventWriteToDisk || !isUserAdmin()) {
|
||||||
perms.allowWriteToDisk = false;
|
perms.allowWriteToDisk = false;
|
||||||
}
|
}
|
||||||
// Legacy Option: Will be removed in V 2.1.0
|
// Legacy Option: Will be removed in V 2.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user