Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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 1 year, 1 month ago.

  • 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
    Moderator

    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)

You must be logged in to reply to this topic.

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

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com