feat(permissions): add workspace.skills_import and workspace.skills_export permissions (#25921)

This commit is contained in:
G30 authored and GitHub committed 2026-06-29 01:36:27 -05:00
1 parent da0fd0da0d
commit 677e164f29
7 files changed
+42 -8

No files matched your search

+2 -2
View File
@@ -263,7 +263,7 @@
}}
/>
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.skills}
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.skills_import}
<button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition"
on:click={() => {
@@ -276,7 +276,7 @@
</button>
{/if}
{#if total && ($user?.role === 'admin' || $user?.permissions?.workspace?.skills)}
{#if total && ($user?.role === 'admin' || $user?.permissions?.workspace?.skills_export)}
<button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition"
on:click={async () => {