Browse Source

fix: changelog popup default behaviour

Timothy J. Baek 1 year ago
parent
commit
3ab2c384f2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/routes/(app)/+layout.svelte

+ 3 - 1
src/routes/(app)/+layout.svelte

@@ -184,7 +184,9 @@
 				}
 			});
 
-			showChangelog.set(localStorage.version !== $config.version);
+			if ($user.role === 'admin') {
+				showChangelog.set(localStorage.version !== $config.version);
+			}
 
 			await tick();
 		}