High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): user can remove server license (#11199)
Alexe005a123ba8a
diff --git a/web/src/lib/components/user-settings-page/license-settings.svelte b/web/src/lib/components/user-settings-page/license-settings.svelteindex af61796784..6952d8139e 100644--- a/web/src/lib/components/user-settings-page/license-settings.svelte+++ b/web/src/lib/components/user-settings-page/license-settings.svelte@@ -116,9 +116,11 @@</div></div>- <div class="text-right mt-4">- <Button size="sm" color="red" on:click={removeServerLicense}>Remove license</Button>- </div>+ {#if $user.isAdmin}+ <div class="text-right mt-4">+ <Button size="sm" color="red" on:click={removeServerLicense}>Remove license</Button>+ </div>+ {/if}{:else}<divclass="bg-gray-50 border border-immich-dark-primary/50 dark:bg-immich-dark-primary/15 p-6 pr-12 rounded-xl flex place-content-center gap-4"