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