def has_object_permission(self, permission, request, view, obj):
        safe_locals = {"obj": obj, "request": request}

        try:
            attr1_value = eval(self.obj_attr1, {}, safe_locals)
            attr2_value = eval(self.obj_attr2, {}, safe_locals)
        except __HOLE__:
            return False
        else:
            return attr1_value == attr2_value
dataset/ETHPy150Open niwinz/djangorestframework-composed-permissions/restfw_composed_permissions/generic/components.py/ObjectAttrEqualToObjectAttr.has_object_permission