@@ -31,8 +31,9 @@ public NavigationPermissionService(IResourceService resourceService, IUserGroupS
3131 /// <param name="user">The user<see cref="IPrincipal"/>.</param>
3232 /// <param name="loginWizardComplete">The loginWizardComplete<see cref="bool"/>.</param>
3333 /// <param name="controllerName">The controller name.</param>
34+ /// <param name="currentUserId">The current user id.</param>
3435 /// <returns>The <see cref="Task{NavigationModel}"/>.</returns>
35- public async Task < NavigationModel > GetNavigationModelAsync ( IPrincipal user , bool loginWizardComplete , string controllerName )
36+ public async Task < NavigationModel > GetNavigationModelAsync ( IPrincipal user , bool loginWizardComplete , string controllerName , int currentUserId )
3637 {
3738 if ( ! loginWizardComplete && ( user . IsInRole ( "Administrator" ) || user . IsInRole ( "ReadOnly" ) || user . IsInRole ( "BlueUser" ) || user . IsInRole ( "BasicUser" ) ) )
3839 {
@@ -48,15 +49,15 @@ public async Task<NavigationModel> GetNavigationModelAsync(IPrincipal user, bool
4849 }
4950 else if ( user . IsInRole ( "ReadOnly" ) )
5051 {
51- return await AuthenticatedReadOnly ( controllerName , user . Identity . GetCurrentUserId ( ) ) ;
52+ return await AuthenticatedReadOnly ( controllerName , currentUserId ) ;
5253 }
5354 else if ( user . IsInRole ( "BasicUser" ) )
5455 {
55- return await AuthenticatedBasicUserOnly ( user . Identity . GetCurrentUserId ( ) ) ;
56+ return await AuthenticatedBasicUserOnly ( currentUserId ) ;
5657 }
5758 else if ( user . IsInRole ( "BlueUser" ) )
5859 {
59- return await AuthenticatedBlueUser ( controllerName , user . Identity . GetCurrentUserId ( ) ) ;
60+ return await AuthenticatedBlueUser ( controllerName , currentUserId ) ;
6061 }
6162 else
6263 {
0 commit comments