def can_delete(self, request=None, instance=None, child=None, field=None): actor = ActorPermission( instance=self, request=request or get_current_request(), ) actor.can_delete() return actor.has_permission()
def can_m2m_remove(self, request=None, instance=None, child=None, field=None): actor = ActorPermission( instance=instance, request=request or get_current_request(), child=child, field=field,) actor.can_m2m_remove() return actor.has_permission()
def can_edit(self, request, instance, child=None, field=None): actor = ActorPermission( instance=instance, request=request or get_current_request(), child=child, field=field, ) actor.can_edit() return actor.has_permission()
def can_delete(self, request=None, instance=None, child=None, field=None): actor = ActorPermission( instance=self, request=request or get_current_request(),) actor.can_delete() return actor.has_permission()