Permission tests like rest_framework.permissions.IsAdminUser may return None. This isn't covered well in rest_condition.permissions.Condition and thus the permission check leaves early with an unexpected exception.
File "…/lib/python3.5/site-packages/rest_condition/permissions.py", line 113, in has_permission
return self.evaluate_permissions('has_permission', request, view)
File "…/lib/python3.5/site-packages/rest_condition/permissions.py", line 98, in evaluate_permissions
reduced_result = self.reduce_op(reduced_result, result)
TypeError: unsupported operand type(s) for |: 'NoneType' and 'bool'
Permission tests like
rest_framework.permissions.IsAdminUser
may return None. This isn't covered well inrest_condition.permissions.Condition
and thus the permission check leaves early with an unexpected exception.