Skip to content

Commit

Permalink
Merge pull request #236 from SkillsFundingAgency/CON-3699-Viewer-user…
Browse files Browse the repository at this point in the history
…-can-delete-a-reservation-in-EAS

CON-3699 Viewer user can delete a reservation in EAS
  • Loading branch information
Najamuddin-Muhammad authored Jul 12, 2021
2 parents fc4c502 + 565aef1 commit f003502
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public async Task<IActionResult> ProviderManage(ReservationsRouteModel routeMode
}

[Authorize(Policy = nameof(PolicyNames.HasProviderGotContributorOrHigherRoleOrIsEmployer))]
[Authorize(Policy = nameof(PolicyNames.HasProviderOrEmployerAccount))]
[Route("{ukPrn}/reservations/{id}/delete", Name = RouteNames.ProviderDelete)]
[Route("accounts/{employerAccountId}/reservations/{id}/delete", Name = RouteNames.EmployerDelete)]
public async Task<IActionResult> Delete(ReservationsRouteModel routeModel)
Expand Down

0 comments on commit f003502

Please sign in to comment.