Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2479

Community Admins unable to delete Collections under their Community

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2, 4.3, 5.0, 5.1
    • Fix Version/s: None
    • Component/s: XMLUI
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      Currently, the ability to Delete a Collection seems to be hardcoded to System Admins only:

      https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/collection/EditCollectionMetadataForm.java#L204

      However, we have a Configuration in dspace.cfg which implies that Community Admins are given the ability to delete subelements by default:

      #core.authorization.community-admin.delete-subelement = true

      This dspace.cfg configuration defaults to "true", and yet it is ignored by the XMLUI in the Collection Edit aspect.

      Community Administrators are able to delete Sub-Communities. So, it seems like the "EditCollectionMetadataForm" should be updated to the same settings as the "EditCommunityMetadataForm", specifically see this code:
      https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/community/EditCommunityMetadataForm.java#L167

      This needs a volunteer, but is likely a tiny (possible one line) fix. PRs welcome.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdonohue Tim Donohue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: