Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed permissions to make dataset public according to new casl model #1165

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

nitrosx
Copy link
Contributor

@nitrosx nitrosx commented Aug 10, 2023

Description

This PR allow to make a dataset public to any user who is an admin or is part of the group that owns the dataset.

Motivation

The current frontend is still following the old backend permission model and allows to publish a dataset only the user which email is listed as PI (which in the new BE we do not use this field as such) or the user named admin.
With BE 4.x admin users can be configured and the user name does not indicate if it is an admin or not. Also, any user that belongs to the group listed as dataset owner should be able to make such change.

Changes:

  • src/app/datasets/dataset-detail/dataset-detail.component.html
  • src/app/datasets/dataset-detail/dataset-detail.component.ts

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install?
  • Toggle added for new features?
  • Requires update of SciCat backend API?

@nitrosx nitrosx merged commit bb66e3c into master Aug 10, 2023
2 checks passed
@nitrosx nitrosx deleted the github-1164 branch August 10, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants