mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
9 lines
217 B
Python
9 lines
217 B
Python
|
def setup_project_user(user):
|
||
|
"""
|
||
|
All users used the Django admin, so we need to set the "staff" user flag.
|
||
|
Called from django_ynh.sso_auth
|
||
|
"""
|
||
|
user.is_staff = True
|
||
|
user.save()
|
||
|
return user
|