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

This topic contains 2 replies, has 3 voices, and was last updated by  Manuel Capinha 3 months, 2 weeks ago.

  • Creator
  • #35685



    I’ve implemented a custom workflow for managing our Opportunities.
    At a certain step, the user has to request management approval of the opportunity. I can apply a rule to prevent step transition but I would also like to block editing of the opportunity at that state.

    I’ve looked around the documentation and I can’t any way to restrict editing (to a group that has the edit role always available) based on the opportunity status.

    Can someone point me in the best direction, please ?

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #35700

    Oro Core

    Hi, manuel.capinha!

    If I correctly understand you question, to block editing of the Opportunity with some state you can use, for example, Symfony serurity voters (see

    For example, create a security voter class like this

    and then register it as security voter


    Manuel Capinha

    This looks like exactly what I was needing.
    Thanks a lot!

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

You must be logged in to reply to this topic.