1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00

added class MyRemoteUserBackend(RemoteUserBackend) giving all authenticated users superuser flag

This commit is contained in:
Jan Krcmar 2015-12-22 15:06:19 +01:00
parent f8c08cb719
commit ae4fdcec92

7
accounts/backends.py Normal file
View file

@ -0,0 +1,7 @@
from django.contrib.auth.backends import RemoteUserBackend
class MyRemoteUserBackend(RemoteUserBackend):
def configure_user(self, user):
user.is_superuser = True
return user