Skip to content

Commit 7d8e96e

Browse files
Removed the commented lines
1 parent 55acd9f commit 7d8e96e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

LearningHub.Nhs.WebUI/Interfaces/IUserGroupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface IUserGroupService
2323
Task<List<RoleUserGroupViewModel>> GetRoleUserGroupDetailForUserAsync(int userId);
2424

2525
/// <summary>
26-
/// The GetRoleUserGroupDetailAsync.
26+
/// The UserHasCatalogueContributionPermission.
2727
/// </summary>
2828
/// <returns>The <see cref="UserHasCatalogueContributionPermission"/>.</returns>
2929
Task<bool> UserHasCatalogueContributionPermission();

LearningHub.Nhs.WebUI/Services/UserGroupService.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ public UserGroupService(
4545
/// <inheritdoc />
4646
public async Task<List<RoleUserGroupViewModel>> GetRoleUserGroupDetailAsync()
4747
{
48-
var cacheKey = $"{this.contextAccessor.HttpContext.User.Identity.GetCurrentUserId()}:AllRolesWithPermissions";
49-
cacheKey = null;
50-
////return await this.cacheService.GetOrFetchAsync(cacheKey, () => this.FetchRoleUserGroupDetailAsync());
51-
52-
return await this.FetchRoleUserGroupDetailAsync();
48+
var cacheKey = $"{this.contextAccessor.HttpContext.User.Identity.GetCurrentUserId()}:AllRolesWithPermissions";
49+
return await this.cacheService.GetOrFetchAsync(cacheKey, () => this.FetchRoleUserGroupDetailAsync());
5350
}
5451

5552
/// <inheritdoc />

0 commit comments

Comments
 (0)