ssossossosso

Forums

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

  • Creator
    Topic
  • #35685

    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
  • #35700

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

    For example, create a security voter class like this

    and then register it as security voter

    #35738

    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.