JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Unresolved security metadata conflict for method

Open smilesrg opened this issue 10 years ago • 0 comments

RuntimeException: Unresolved security metadata conflict for method "Trim\Bundle\AnalyticsBundle\Controller\OverviewController::trafficByCountryMapAction" in "/home/sergey/public_html/trim/src/Trim/Bundle/TrimBundle/Controller/OverviewController.php". Please copy the respective annotations, and add @SatisfiesParentSecurityPolicy to the child method.

My parent method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

My child method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="beta_all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Security\SatisfiesParentSecurityPolicy
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

Library version: "jms/security-extra-bundle": "1.5.*@dev"

smilesrg avatar Dec 02 '15 14:12 smilesrg