diff --git a/config/packages/security.yaml b/config/packages/security.yaml index a4ce57f..c7edad6 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -39,6 +39,9 @@ security: - { path: ^/validate, roles: PUBLIC_ACCESS } - { path: ^/menu-browser, roles: PUBLIC_ACCESS } - { path: ^/menu/, roles: PUBLIC_ACCESS } + # Creación de clientes y OUs: solo super-admin y ou-admin + - { path: ^/api/clients$, methods: [POST], roles: [ROLE_SUPER_ADMIN, ROLE_ORGANIZATIONAL_UNIT_ADMIN] } + - { path: ^/api/organizational-units$, methods: [POST], roles: [ROLE_SUPER_ADMIN, ROLE_ORGANIZATIONAL_UNIT_ADMIN] } - { path: ^/, roles: ROLE_USER } when@test: