OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Prevent editing an Opportunity at a certain state/step

This topic contains 2 replies, has 3 voices, and was last updated by  Manuel Capinha 6 years, 8 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
  • #29337

    manuel.capinha
    Participant

    Hi.

    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,
    Manuel

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

    mmiasnikov
    Participant

    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 http://symfony.com/doc/current/security/voters.html).

    For example, create a security voter class like this

    and then register it as security voter

    #29339

    Manuel Capinha
    Participant

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

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

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top