File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
LearningHub.Nhs.WebUI/Controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,8 @@ public async Task<IActionResult> CreateVersion(int resourceId)
171171 [ Route ( "my-contributions/{selectedTab}/{catalogueId}/{nodeId}" ) ]
172172 public async Task < IActionResult > MyContributions ( )
173173 {
174- bool usergroup = await this . userGroupService . UserHasCatalogueContributionPermission ( ) ;
175- if ( ( this . User . IsInRole ( "ReadOnly" ) || this . User . IsInRole ( "BasicUser" ) ) || ( ! usergroup && ( ! await this . resourceService . UserHasPublishedResourcesAsync ( ) ) ) )
174+ bool catalogueContributionPermission = await this . userGroupService . UserHasCatalogueContributionPermission ( ) ;
175+ if ( ( this . User . IsInRole ( "ReadOnly" ) || this . User . IsInRole ( "BasicUser" ) ) || ( ! catalogueContributionPermission && ( ! await this . resourceService . UserHasPublishedResourcesAsync ( ) ) ) )
176176 {
177177 return this . RedirectToAction ( "AccessDenied" , "Home" ) ;
178178 }
You can’t perform that action at this time.
0 commit comments