inveniosoftware / flask-resources

REST APIs for Flask
https://flask-resources.readthedocs.io
MIT License
3 stars 21 forks source link

permissions: how are they handled #8

Open ppanero opened 4 years ago

ppanero commented 4 years ago

CHANGE OF IDEAS FROM DISCUSSION. DO NOT TACKLE ISSUE.

currently the RequestResourceCtx has a permission_action attribute, but it is not used anywhere.

No permission scheme is implemented. Some resources might need the record itself (which only comes into knowledge at the controller level), therefore maybe different level of permissions are needed (e.g. resource_permissions and controller_permissions).

Some ideas that came from the RFC: