inveniosoftware / invenio-records-permissions

Permissions for Invenio's records REST API.
https://invenio-records-permissions.readthedocs.io
MIT License
0 stars 25 forks source link

Add files permission compatible with invenio-files-rest permission interface #32

Closed fenekku closed 4 years ago

fenekku commented 4 years ago

invenio-files-rest presents a slightly different interface to files permission than what record permissions have.

1- only a single factory is used for all actions 2- actions are actually on buckets (or bucket related) 3- action names are already defined and differ from invenio-records-permissions naming approach (e.g., 'update-bucket' versus 'can_update_files')

We should comply to that interface for now and convert internally.

This is needed for file upload: https://github.com/inveniosoftware/invenio-rdm-records/issues/42

fenekku commented 4 years ago

Closed via #34