Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using security with output DTO do not target the correct object. #2466

Open
RachidTMT opened this issue Jun 20, 2023 · 1 comment
Open

using security with output DTO do not target the correct object. #2466

RachidTMT opened this issue Jun 20, 2023 · 1 comment

Comments

@RachidTMT
Copy link

RachidTMT commented Jun 20, 2023

I'm using a security voter is_granted('PERSON_VIEW', object) in GET operation and also i use an Output DTO to format the rendering. the issue is that rather than voter check on the current object passed in url it checks on output, so it return always a 403 status.
Any idea please.
@dunglas
Best regards.

@jzecca
Copy link
Contributor

jzecca commented Jun 21, 2023

I think this can be similar (or identical) to this SO question of mine:
https://stackoverflow.com/questions/75017502/security-issue-after-migrating-datatransformer-to-stateprovider

Posted it back in january, but I'd still love to get a feedback on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants