inveniosoftware / invenio-rdm-records

DataCite-based data model for InvenioRDM flavour.
https://invenio-rdm-records.readthedocs.io
MIT License
15 stars 81 forks source link

services: fix permission for file edit. #1746

Closed alejandromumo closed 1 month ago

alejandromumo commented 1 month ago

closes https://github.com/zenodo/zenodo-rdm/issues/852

slint commented 1 month ago

@tmorrell I remember you mentioned using this function/config. The issue was that the Draft was being passed as the record parameter, and the Record wasn't passed at all, so we've added more explicit params and switched the values passed to be correct. Depending on what kind of attributes you were checking this might not affect you at all, but just a heads up.

tmorrell commented 1 month ago

Thanks @slint, I've updated our test instance. You might want to update https://github.com/inveniosoftware/docs-invenio-rdm/blob/dev/docs/customize/files-and-versioning.md as well.