mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 15:00:16 +02:00
parent
28018bcc2d
commit
7aae314e74
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user