OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Custom Bundle, Custom ACL

This topic contains 5 replies, has 3 voices, and was last updated by  pauloasterio 7 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36301

    pauloasterio
    Participant

    Hello all,

    I created a custom bundle and set an entire workflow steps/transitions etc. Now I want to restrict access to specific workflow transaction so the snippet bellow

    in the workflow config there is an transition:

    decline_credit:
    label: ‘Decline credit’
    step_to: credit_declined
    is_start: false
    is_unavailable_hidden: true
    acl_resource: application_workflow_admin
    frontend_options:
    icon: ‘icon-thumbs-down-alt’
    class: btn-danger
    transition_definition: decline_credit_def

    in …/Resources/config/acl.yml

    application_workflow_manager:
    label: Application manager
    type: action
    group_name: Application manager

    How do I go from here? How to I set the acl to an user?

    best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #36302

    pauloasterio
    Participant

    Anyone ?

    #36303

    Artem Liubeznyi
    Spectator

    Hi Paulo,

    Do you want to limit access to transition to an individual user, or to the entire role? The latter is done via acl_resource and acl_message keys (please see documentation for details).

    #36304

    pauloasterio
    Participant

    Artem, Thank you for your reply.

    I want to limit access to the entire role, however, the problem is, after I create the acl how do I associate that with the role?

    #36305

    Mike Kudelya
    Participant

    Hi,

    I have some workaround.

    Create new acl resource inside YourBundle/Resources/config/acl.yml:

    add this resource to transition:

    Clear cache and run:

    After that when you are updating your role you can see new acl resource in Application section.

    #36306

    pauloasterio
    Participant

    Thank you Mike, that worked for me!

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top