SensioFrameworkExtraBundle icon indicating copy to clipboard operation
SensioFrameworkExtraBundle copied to clipboard

@Security doesn't return 401

Open websirnik opened this issue 11 years ago • 1 comments

According to these docs http://symfony.com/doc/current/book/security.html#access-controls-authorization, I suppose to get 401 in response to the following action for unauthneticated users:

    /**
     * ...
     * @Security("has_role('ROLE_USER')")
     * ...
     */
    public function getPostAction()
    {
        ...
    }

Instead I'm getting 403. Is it intentional or my app just misconfigured(it certanly might be or there is a conflict with FosRestBundle)?

websirnik avatar Oct 23 '14 17:10 websirnik

Can you reproduce this on standard project or show your source code?

ewgRa avatar Feb 02 '15 14:02 ewgRa