Permission update

This commit is contained in:
Scott Idem
2024-11-08 11:30:58 -05:00
parent abcd5c54c2
commit 4fe04d9c3f

View File

@@ -53,10 +53,12 @@ onMount(() => {
<section
class="ae_meta archive__meta mt-2 flex flex-col gap-2 items-center justify-center"
class:hidden={!$ae_loc.administrator_access}
class:hidden={!$ae_loc.trusted_access}
>
<div class="ae_group flex flex-col sm:flex-row gap-1 items-center justify-center flex flex-col text-sm text-gray-500">
<span>
<span
class:hidden={!$ae_loc.administrator_access}
>
<span class="ae_label">Created on:</span>
<span class="ae_value archive__created_on">{ae_util.iso_datetime_formatter($lq__archive_obj?.created_on, 'datetime_iso_no_seconds')}</span>
</span>
@@ -70,7 +72,7 @@ onMount(() => {
{#if $ae_loc.trusted_access}
<div class="ae_options">
{#if $ae_loc.trusted_access}
<!-- {#if $ae_loc.trusted_access} -->
<button
disabled={!$ae_loc.trusted_access}
on:click={() => {
@@ -108,7 +110,7 @@ onMount(() => {
>
<span class="fas fa-edit m-1"></span> Edit Archive
</button>
{/if}
<!-- {/if} -->
</div>
{/if}
</section>