Skip to content

Commit ad2622d

Browse files
Merge pull request #1476 from TechnologyEnhancedLearning/Develop/Fixes/CataloguePermissionfix
Test code
2 parents 0e91c4a + 59674ce commit ad2622d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenAPI/LearningHub.Nhs.OpenApi/Controllers/UserController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ public async Task<List<Dictionary<string, object>>> GetLHUserNavigation()
343343
{
344344
var userId = this.User.Identity.GetCurrentUserId();
345345

346-
var (cacheExists, _) = await this.cacheService.TryGetAsync<string>($"{userId}:LoginWizard");
346+
////var (cacheExists, _) = await this.cacheService.TryGetAsync<string>($"{userId}:LoginWizard");
347347

348-
model = await this.permissionService.GetNavigationModelAsync(this.User, !cacheExists, string.Empty);
348+
model = await this.permissionService.GetNavigationModelAsync(this.User, true, string.Empty);
349349

350350
model.NotificationCount = await this.userNotificationService.GetUserUnreadNotificationCountAsync(userId);
351351
}

0 commit comments

Comments
 (0)