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.
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