Skip to content

Commit

Permalink
CON-2502 Removes ManageApprenticesV2 attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ben1stone-leftdfe committed Oct 21, 2020
1 parent e920231 commit 86cc44b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public ApprenticeController(IModelMapper modelMapper, ICookieStorageService<Inde
}

[Route("", Name = RouteNames.ApprenticesIndex)]
[DasAuthorize(EmployerFeature.ManageApprenticesV2)]
public async Task<IActionResult> Index(IndexRequest request)
{
IndexRequest savedRequest = null;
Expand All @@ -64,7 +63,6 @@ public async Task<IActionResult> Index(IndexRequest request)
}

[Route("download", Name = RouteNames.ApprenticesDownload)]
[DasAuthorize(EmployerFeature.ManageApprenticesV2)]
public async Task<IActionResult> Download(DownloadRequest request)
{
var downloadViewModel = await _modelMapper.Map<DownloadViewModel>(request);
Expand All @@ -73,15 +71,13 @@ public async Task<IActionResult> Download(DownloadRequest request)
}

[Route("{apprenticeshipHashedId}/details/editenddate", Name = RouteNames.ApprenticeEditEndDate)]
[DasAuthorize(EmployerFeature.ManageApprenticesV2)]
public async Task<IActionResult> EditEndDate(EditEndDateRequest request)
{
var viewModel = await _modelMapper.Map<EditEndDateViewModel>(request);
return View(viewModel);
}

[Route("{apprenticeshipHashedId}/details/editenddate", Name = RouteNames.ApprenticeEditEndDate)]
[DasAuthorize(EmployerFeature.ManageApprenticesV2)]
[HttpPost]
public async Task<IActionResult> EditEndDate(EditEndDateViewModel viewModel)
{
Expand Down

0 comments on commit 86cc44b

Please sign in to comment.