Closed rouk1 closed 8 years ago
If you use rest_framework.permissions.IsAuthenticated the reduce operator will crash here because Django now returns a CallableBool.
rest_framework.permissions.IsAuthenticated
CallableBool
This could be fixed by adding a callable test just after getting the result.
if hasattr(result, '__call__'): result = result()
Fixed in v1.0.3 https://github.com/caxap/rest_condition/commit/ce2ced84f67dbb9b371a36311006723a749e1e8f
If you use
rest_framework.permissions.IsAuthenticated
the reduce operator will crash here because Django now returns aCallableBool
.This could be fixed by adding a callable test just after getting the result.