-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
On entity PUT calls if:
Publication.status == 'Published' or
Dataset.status == 'Published' or
Donor.data_access_level == 'public' or
Sample.data_access_level == 'public' or
Collection.doi_url is not (null or empty) or
Collection.registered_doi is not (null or empty) or
EPICollection.doi_url is not (null or empty) or
EPICollection.registered_doi is not (null or empty)
Reject the update with a 403 with the message "Permission denied on changing a published/public entity".
If an additional header of "X-HuBMAP-Update-Override: Override-Key <new secret override key specified in config file>" is found and the secret key matches the configured value, allow overwriting.