ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 5 replies, has 3 voices, and was last updated by pauloasterio pauloasterio 1 year ago.

  • Creator
    Topic
  • #22382
    pauloasterio
    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
  • #22399
    pauloasterio
    pauloasterio
    Participant

    Anyone ?

    #22401
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    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).

    #22419
    pauloasterio
    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?

    #22427
    Mike Kudelya
    Mike Kudelya
    Oro Core

    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.

    #22432
    pauloasterio
    pauloasterio
    Participant

    Thank you Mike, that worked for me!

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

You must be logged in to reply to this topic.