do not assess states of inactive users

addresses #502
This commit is contained in:
Adarnof 2016-07-11 15:25:09 +00:00 committed by GitHub
parent 28018bcc2d
commit 7aae314e74

View File

@ -408,7 +408,10 @@ def set_state(user):
if user.is_superuser:
return
change = False
if user.is_active:
state = determine_membership_by_user(user)
else:
state = False
logger.debug("Assigning user %s to state %s" % (user, state))
if state == "MEMBER":
change = make_member(user)