diff --git a/src/SFA.DAS.EmployerCommitmentsV2.Web/Controllers/ErrorController.cs b/src/SFA.DAS.EmployerCommitmentsV2.Web/Controllers/ErrorController.cs index 44f2b6ee4..f5b9b7009 100644 --- a/src/SFA.DAS.EmployerCommitmentsV2.Web/Controllers/ErrorController.cs +++ b/src/SFA.DAS.EmployerCommitmentsV2.Web/Controllers/ErrorController.cs @@ -6,7 +6,9 @@ public class ErrorController : Controller { [Route("error")] public IActionResult Error(int? statusCode) - { + { + ViewBag.HideNav = true; + switch (statusCode) { case 400: diff --git a/src/SFA.DAS.EmployerCommitmentsV2.Web/Extensions/ILinkGeneratorExtensions.cs b/src/SFA.DAS.EmployerCommitmentsV2.Web/Extensions/ILinkGeneratorExtensions.cs index 2275f329a..daa2860c4 100644 --- a/src/SFA.DAS.EmployerCommitmentsV2.Web/Extensions/ILinkGeneratorExtensions.cs +++ b/src/SFA.DAS.EmployerCommitmentsV2.Web/Extensions/ILinkGeneratorExtensions.cs @@ -50,5 +50,10 @@ public static string EmployerHome(this ILinkGenerator linkGenerator, string acco { return linkGenerator.UsersLink($"accounts/{accountHashedId}/teams"); } + + public static string EmployerAccountsHome(this ILinkGenerator linkGenerator) + { + return linkGenerator.AccountsLink(); + } } } \ No newline at end of file diff --git a/src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Error/403.cshtml b/src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Error/403.cshtml index b9e1d693a..0f5a3747e 100644 --- a/src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Error/403.cshtml +++ b/src/SFA.DAS.EmployerCommitmentsV2.Web/Views/Error/403.cshtml @@ -1,7 +1,18 @@ -@{ +@inject ILinkGenerator LinkGenerator +@using SFA.DAS.EmployerCommitmentsV2.Web.Extensions + +@{ ViewData["Title"] = "Access denied"; ViewBag.GaData.Vpv = "/error/403"; }
Your account does not have sufficient privileges.
\ No newline at end of file +Your account does not have sufficient privileges.
+ +If you are experiencing difficulty accessing the area of the site you need, first contact an/the account owner to ensure you have the correct role assigned to your account.
+