clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
36 stars 17 forks source link

Space sharing can only be done by collection/dataset owner #440

Open ocaisa opened 9 months ago

ocaisa commented 9 months ago

Describe the bug An admin or editor of a space cannot share a dataset/collection with another space. This only seems possible if the user is the owner (and in superadmin mode)

To Reproduce Steps to reproduce the behavior:

  1. Enable space sharing plugin
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A space editor or admin should be able to add the dataset/collection to another space.

Screenshots

When the user (a space administrator) is the dataset owner: Screenshot 2023-12-17 152459

When the same user does not own the dataset: Screenshot 2023-12-17 152435

Desktop (please complete the following information):