Jelajahi Sumber

fix: changelog popup default behaviour

Timothy J. Baek 1 tahun lalu
induk
melakukan
3ab2c384f2
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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();
 		}