dry-rest-permissions
dry-rest-permissions copied to clipboard
Use ModelMixin for permission methods
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.