ssossossosso

Forums

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

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 2 years, 4 months ago.

  • Creator
    Topic
  • #63283

    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
  • #63284
    Yevhen Shyshkin
    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.

    #63285

    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?

    #63286
    Yevhen Shyshkin
    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)

You must be logged in to reply to this topic.

ssossossosso