Skip to content

Conversation

@BirdMachine
Copy link
Contributor

Allows Collections and EPICollections for allowable_edit_states permission lookup

src/app.py Outdated
#
# example url: https://my.endpoint.server/entities/a5659553c04f6ccbe54ff073b071f349/allowable-edit-states
# inputs:
# - The uuid of a HuBMAP entity (Donor, Sample or Dataset) as a URL path parameter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add new types to comment

if status == 'new':
r_val['has_submit_priv'] = True
elif status == 'qa':
r_val['has_publish_priv'] = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shirey Collections don't have status, then how can we determine the has_publish_priv?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuanzhou If registered_doi or doi_url contains a value, then it is already published and can't be published again. Otherwise, if registered_doi and doi_url are both empty and the user is a member of HuBMAP-Data-Admin Globus group, then they user is allowed to publish.

@yuanzhou yuanzhou merged commit e85d2a7 into dev-integrate Nov 7, 2025
4 checks passed
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.

4 participants