feat: disable users from accesing models setting

This commit is contained in:
Timothy J. Baek 2024-01-02 17:31:57 -08:00
parent 5133ec75e3
commit d7d4d44489

View file

@ -761,6 +761,7 @@
<div class=" self-center">Advanced</div>
</button>
{#if $user?.role === 'admin'}
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'models'
@ -786,6 +787,7 @@
</div>
<div class=" self-center">Models</div>
</button>
{/if}
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===