workflow: admin & p_user always have access

This commit is contained in:
Michael Shanks 2020-06-24 11:22:18 +01:00
parent 1c958c226a
commit 83b640286d
1 changed files with 7 additions and 3 deletions

View File

@ -12,10 +12,14 @@
{
name: "Admin",
key: "ADMIN",
canExecute: true,
editable: false,
},
{
name: "Power User",
key: "POWER_USER",
canExecute: true,
editable: false,
},
]
@ -123,10 +127,10 @@
<div class="config-item">
<label class="uk-form-label">User Access</label>
<div class="access-levels">
{#each ACCESS_LEVELS as { name, key }}
{#each ACCESS_LEVELS as level}
<span class="access-level">
<label>{name}</label>
<input class="uk-checkbox" type="checkbox" />
<label>{level.name}</label>
<input class="uk-checkbox" type="checkbox" disabled={!level.editable} bind:checked={level.canExecute}/>
</span>
{/each}
</div>