OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums OroPlatform Using roles to restrict workflow transitions

This topic contains 3 replies, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 4 years, 1 month ago.

  • 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

    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

    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)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No