mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
added class MyRemoteUserBackend(RemoteUserBackend) giving all authenticated users superuser flag
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user