Hide the Create/Upload buttons when the user doesn't have that permission (closes #16)

This commit is contained in:
Oliver 2026-02-03 16:52:39 -07:00
parent 177a7bb637
commit 4a2c40397f
5 changed files with 31 additions and 16 deletions

View file

@ -12,11 +12,13 @@
>
{{ localize "IT.apps.ArtSidebar.view" }}
</button>
<button
type="button"
data-action="openApp"
data-app="ArtistApp"
>
{{ localize "IT.apps.ArtSidebar.add-new" }}
</button>
{{#if can.upload}}
<button
type="button"
data-action="openApp"
data-app="ArtistApp"
>
{{ localize "IT.apps.ArtSidebar.add-new" }}
</button>
{{/if}}
</section>

View file

@ -12,11 +12,13 @@
>
{{ localize "IT.apps.ArtSidebar.view" }}
</button>
<button
type="button"
data-action="openApp"
data-app="ImageApp"
>
{{ localize "IT.apps.ArtSidebar.add-new" }}
</button>
{{#if can.upload}}
<button
type="button"
data-action="openApp"
data-app="ImageApp"
>
{{ localize "IT.apps.ArtSidebar.add-new" }}
</button>
{{/if}}
</section>