refac: hide docs, releases for users
This commit is contained in:
1 parent
55ad48d1c3
commit
0acd78049d
1 file changed
+2
@@ -144,6 +144,7 @@
|
||||
|
||||
<!-- {$i18n.t('Help')} -->
|
||||
|
||||
{#if $user?.role === 'admin'}
|
||||
<DropdownMenu.Item
|
||||
as="a"
|
||||
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
||||
@@ -170,6 +171,7 @@
|
||||
<Map className="size-5" />
|
||||
<div class="flex items-center">{$i18n.t('Releases')}</div>
|
||||
</DropdownMenu.Item>
|
||||
{/if}
|
||||
|
||||
<DropdownMenu.Item
|
||||
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition cursor-pointer"
|
||||
|
||||
Reference in new issue
Block a user