Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Security: Vote on Routes #147

Open
rugbymauri opened this issue May 26, 2023 · 0 comments
Open

Security: Vote on Routes #147

rugbymauri opened this issue May 26, 2023 · 0 comments

Comments

@rugbymauri
Copy link
Contributor

rugbymauri commented May 26, 2023

if a route is secured by security-access-controls, all links generated should be checked against.

access-control sample:

    access_control:
         - { path: ^/admin/app_module_occasion_student, roles: [ ROLE_ADMIN, ROLE_TEACHER, ROLE_STUDENT_SUPERVISOR, ROLE_STUDENT ] }
         - { path: ^/admin, roles: [ ROLE_ADMIN ] }
         - { path: ^/, roles: [ ROLE_ADMIN, ROLE_TEACHER, ROLE_STUDENT_SUPERVISOR, ROLE_STUDENT ] }

for the role ROLE_STUDENT all links with the pattern ^/admin should no be genarated, except for ^/ and ^/admin/app_module_occasion_student

ralates to #146 and whatwedo/TableBundle#56

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

No branches or pull requests

1 participant