Skip to content

Commit b0dace0

Browse files
authored
Merge pull request #1217 from TechnologyEnhancedLearning/Develop/Fixes/TD-5665-COmmunity-Contribution-Suspend
TD-5665: Community Contribution Suspend
2 parents 725c3e4 + 09c49db commit b0dace0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/CatalogueSelectorAccordion.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
A catalogue is a curated set of resources that has its own web page.
2020
</p>
2121
<p>
22-
You can contribute a resource as an editor of a catalogue or in your own name.
23-
To contribute a resource in your own name, select Community contributions from the drop down menu.
22+
You can contribute a resource as an editor of a catalogue.
2423
</p>
2524
<p>
2625
You can manage all resources that you have contributed in the My contributions area.

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/CatalogueSelect.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
A catalogue is a curated set of resources that has its own web page.
2727
</p>
2828
<p>
29-
You can contribute a resource as an editor of a catalogue or in your own name.
30-
To contribute a resource in your own name, select Community contributions from the drop down menu.
29+
You can contribute a resource as an editor of a catalogue.
3130
</p>
3231
<p>
3332
You can manage all resources that you have contributed in the My contributions area.

LearningHub.Nhs.WebUI/Services/UserGroupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<List<RoleUserGroupViewModel>> GetRoleUserGroupDetailForUserAsy
6262
public async Task<bool> UserHasCatalogueContributionPermission()
6363
{
6464
var userRoleGroups = await this.GetRoleUserGroupDetailAsync();
65-
if (userRoleGroups != null && userRoleGroups.Any(r => r.RoleEnum == RoleEnum.LocalAdmin || r.RoleEnum == RoleEnum.Editor))
65+
if (userRoleGroups != null && userRoleGroups.Any(r => r.RoleEnum == RoleEnum.Editor))
6666
{
6767
return true;
6868
}

0 commit comments

Comments
 (0)