Skip to content

PIN-6482 Add check on user role on bff for upload document #2177

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sandrotaje
Copy link
Collaborator

https://pagopa.atlassian.net/browse/PIN-6482

The bug is generated by applying visibility to eservice or eservice templates on getEserviceById or getEServiceTemplateById that returns 404 if for your role is not possible to view that eservice/eserviceTemplate.

Since this specific endpoint contains some logic and performs some actions, even uploading a file, I added the authorization check also here so that the endpoint returns 403 before accessing the logic of the service.

@sandrotaje sandrotaje marked this pull request as ready for review July 23, 2025 07:54
@sandrotaje sandrotaje added the bug Something isn't working label Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants