Skip to content

Commit

Permalink
Merge pull request #100 from kiloutyg/97-update-securityyml-to-includ…
Browse files Browse the repository at this point in the history
…e-every-nook-and-crannies-of-the-validations-and-mailer-systems

checked security script and made one little change
  • Loading branch information
kiloutyg authored Sep 20, 2023
2 parents e0648ee + 0ee32bf commit f8ff83b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ security:
- { path: ^/uploaded, roles: ROLE_LINE_ADMIN }
- { path: ^/validation, roles: ROLE_LINE_ADMIN }

- { path: ^/category_manager, roles: ROLE_MANAGER }
- { path: ^/category_manager, roles: ROLE_MANAGER }
- { path: ^/tutorial, roles: ROLE_MANAGER }

# - { path: ^/api, roles: ROLE_LINE_ADMIN }



# - { path: ^/profile, roles: ROLE_USER }

when@test:
security:
password_hashers:
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/IncidentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function download_file(string $name = null): Response


// Create a route to visualize the file in the modifcation view.
#[Route('/modify_download_incident/{id}', name: 'modify_incident_download_file')]
#[Route('/incident/modify_download_incident/{id}', name: 'modify_incident_download_file')]
public function modify_download_file(int $id = null): Response
{
$file = $this->incidentRepository->findOneBy(['id' => $id]);
Expand Down

0 comments on commit f8ff83b

Please sign in to comment.