diff --git a/DigitalLearningSolutions.Web/Controllers/ApplicationSelectorController.cs b/DigitalLearningSolutions.Web/Controllers/ApplicationSelectorController.cs index e58a37c602..83f70db712 100644 --- a/DigitalLearningSolutions.Web/Controllers/ApplicationSelectorController.cs +++ b/DigitalLearningSolutions.Web/Controllers/ApplicationSelectorController.cs @@ -17,8 +17,11 @@ public IActionResult Index() var contentManagementSystemAccess = User.GetCustomClaimAsBool(CustomClaimTypes.UserAuthenticatedCm) ?? false; var superviseAccess = User.GetCustomClaimAsBool(CustomClaimTypes.IsSupervisor) ?? false; - var contentCreatorAccess = User.GetCustomClaimAsBool(CustomClaimTypes.UserCentreManager) ?? false; - var frameworksAccess = User.GetCustomClaimAsBool(CustomClaimTypes.IsFrameworkDeveloper) | User.GetCustomClaimAsBool(CustomClaimTypes.IsFrameworkContributor) | User.GetCustomClaimAsBool(CustomClaimTypes.IsWorkforceManager) | User.GetCustomClaimAsBool(CustomClaimTypes.IsWorkforceContributor) ?? false; + var contentCreatorAccess = User.GetCustomClaimAsBool(CustomClaimTypes.UserContentCreator) ?? false; + var frameworksAccess = User.GetCustomClaimAsBool(CustomClaimTypes.IsFrameworkDeveloper) | + User.GetCustomClaimAsBool(CustomClaimTypes.IsFrameworkContributor) | + User.GetCustomClaimAsBool(CustomClaimTypes.IsWorkforceManager) | + User.GetCustomClaimAsBool(CustomClaimTypes.IsWorkforceContributor) ?? false; var model = new ApplicationSelectorViewModel( learningPortalAccess, @@ -26,7 +29,8 @@ public IActionResult Index() contentManagementSystemAccess, superviseAccess, contentCreatorAccess, - frameworksAccess); + frameworksAccess + ); return View(model); }