File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments