Hide developer mode option when you aren't a developer

This commit is contained in:
Andrew Kingston 2021-05-24 16:49:43 +01:00
parent d856eae6f7
commit 4a53d4c11e
1 changed files with 8 additions and 6 deletions

View File

@ -64,12 +64,14 @@
>
Update password
</MenuItem>
{#if $auth.isBuilder}
<MenuItem
icon="UserDeveloper"
on:click={() => $goto("../portal")}
>
Open developer mode
</MenuItem>
{/if}
<MenuItem icon="LogOut" on:click={auth.logout}>Log out</MenuItem>
</ActionMenu>
</div>