lukaszb/django-guardian — Issue #56: if user_obj.is_active is not True:    can fail
Author: mgom
Created: 2011-12-09 19:57:28+00:00
State: open

hi

in backends, there is the following statement :

# Do not check any further if user is not active
if user_obj.is_active is not True:
return False

It can fail because in mysql, boolean is stored with values 0 or 1, so for example is_active can be stetted to 1 and thus, In this case, it is not considered as True
I change it by "if not user_obj.is_active:"

But I don't know if there is a specific and good reason to do check with True....