diff --git a/src/page-circle-edit.pug b/src/page-circle-edit.pug index 6c07ebb..2ef1c0a 100644 --- a/src/page-circle-edit.pug +++ b/src/page-circle-edit.pug @@ -38,45 +38,45 @@ div.content-box__info sib-link(class="backlink", bind-resources, next='circle-profile') Back - h1 Edit your circle + sib-ac-checker(permission='acl:Write', bind-resources) + h1 Edit your circle - sib-form.block.circle-edit-form( - bind-resources + sib-form.block.circle-edit-form( + bind-resources - fields='block-circle__info(name, owner), description' - range-owner=`${endpoints.users}` + fields='block-circle__info(name, owner), description' + range-owner=`${endpoints.users}` - label-owner='owner' - label-description='circle subtitle' + label-owner='owner' + label-description='circle subtitle' - class-name='form-label is-light is-half-width' - class-owner='form-label is-light is-half-width member-select color' - class-description='form-label is-light is-full-width' + class-name='form-label is-light is-half-width' + class-owner='form-label is-light is-half-width member-select color' + class-description='form-label is-light is-full-width' - widget-owner='sib-form-auto-completion' + widget-owner='sib-form-auto-completion' - partial='' + partial='' - submit-button='Save' - next='circle-information' - ) + submit-button='Save' + next='circle-information' + ) h2 Members list - //- TODO: sib-ac-checker unworking - https://git.happy-dev.fr/startinblox/framework/sib-core/issues/517 - //- sib-ac-checker(permission='acl:Write', bind-resources, nested-field='team') - sib-form.block.team-form( - bind-resources - nested-field='members' - fields='user' - range-user=`${endpoints.users}` + sib-ac-checker(permission='acl:Append', bind-resources, nested-field='team') + sib-form.block.team-form( + bind-resources + nested-field='members' + fields='user' + range-user=`${endpoints.users}` - class-user='team form-label is-dark' - label-user='' - widget-user='sib-form-auto-completion' + class-user='team form-label is-dark' + label-user='' + widget-user='sib-form-auto-completion' - submit-button='Add a member' - ) + submit-button='Add a member' + ) .table diff --git a/src/page-circle-profile.pug b/src/page-circle-profile.pug index 8846ae8..163daa7 100644 --- a/src/page-circle-profile.pug +++ b/src/page-circle-profile.pug @@ -15,7 +15,7 @@ sib-router(default-route='circle-profile', hidden) widget-creationDate='sib-display-date' ) - sib-ac-checker.testblock.circle-edit-button(permission='acl:Write', bind-resources) + sib-ac-checker.testblock.circle-edit-button(permission='acl:Append', bind-resources, nested-field='members') sib-link(class='button text-bold text-uppercase reversed button-blue bordered with-icon icon-pencil' next='circle-edit' bind-resources) Edit and add Members