OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform Using roles to restrict workflow transitions

This topic contains 3 replies, has 2 voices, and was last updated by  Yevhen Shyshkin 8 years, 5 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
  • #36921

    dave08
    Participant

    Is it possible to allow certain transition buttons to appear only for users with a certain role?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #36922

    Yevhen Shyshkin
    Participant

    Hello.

    There is an ability to assign some specific ALC resource to transition, so it will be allowed only if this resource is granted for current role (see acl_resource parameter at transition configuration) – this even more flexible than assigning role to transition.

    So, you need to:
    – specify custom ACL resource (see example)
    – assign it to transition (see example)
    – update workflow definition usign oro:workflow:definitions:load command
    – grant resource to required roles

    Alternative solution is to add your custom condition similar to AclGranted and check your specific role there.

    #36923

    dave08
    Participant

    Thank you for your quick reply!

    How can a workflow status be displayed on a datagrid and a filter be made for it?

    #36924

    Yevhen Shyshkin
    Participant

    It’s just a regular relation that added automatically – e.g. Shopping List grid (http://demo.orocrm.com/desktop/magento/cart/), column “Step”.

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

The forum ‘OroPlatform’ is closed to new topics and replies.

Back to top