

def has_object_permission(self, request, view, obj):
    worker = Worker.objects.get(user=request.user)
    return (obj.worker == obj)

dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/utils/view_helpers.py IsAssociatedWorker.has_object_permission/VarMisuse@37/40 `worker`->`obj`