Skip to content

Commit 33a2693

Browse files
committed
🔒 Fix, correct call of isUserAdmin() M(#590)
1 parent 9eda048 commit 33a2693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const store = new Vuex.Store({
8989
perms.allowSaveLocally = false;
9090
}
9191
// Disable saving changes to disk, only
92-
if (appConfig.preventWriteToDisk || !isUserAdmin) {
92+
if (appConfig.preventWriteToDisk || !isUserAdmin()) {
9393
perms.allowWriteToDisk = false;
9494
}
9595
// Legacy Option: Will be removed in V 2.1.0

0 commit comments

Comments
 (0)