dry-rest-permissions icon indicating copy to clipboard operation
dry-rest-permissions copied to clipboard

Use ModelMixin for permission methods

Open adamn opened this issue 7 years ago • 0 comments

There should be a ModelMixin that models can inherit from that has the basic methods: has_read_permission, has_write_permission, has_object_read_permission, and has_object_write_permission. The object versions should return the non-object version return value by default and the non-object versions should raise a NotImplemented exception or return False by default.

adamn avatar Mar 16 '17 19:03 adamn