workflow: admin & p_user always have access

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

View File

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