mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
added class MyRemoteUserBackend(RemoteUserBackend) giving all authenticated users superuser flag
This commit is contained in:
parent
f8c08cb719
commit
ae4fdcec92
1 changed files with 7 additions and 0 deletions
7
accounts/backends.py
Normal file
7
accounts/backends.py
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue