add rights to VRmen

parent 4e50638e
Pipeline #6988 failed with stages
in 27 seconds
......@@ -19,5 +19,9 @@ def find_or_create_user(access_token, access_token_payload):
photoPath="https://auth.viarezo.fr/media/"+data['photo']
)
user.save()
if "ViaRézo(wo)man" in data['roles']:
user.is_staff = True
user.is_superuser = True
user.save()
return user
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment