diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
commit | 63874cf9820ee82050d3d11ba12212c197821fcd (patch) | |
tree | 676ad52e31e5dc3d3ca17ab09e9712a34ed7a1af /manager/settings.py | |
parent | update group of docs when type changes (diff) | |
download | scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.tar.gz scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.zip |
add impersonation
Diffstat (limited to 'manager/settings.py')
-rw-r--r-- | manager/settings.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manager/settings.py b/manager/settings.py index c2ffdf6..e145e45 100644 --- a/manager/settings.py +++ b/manager/settings.py @@ -66,6 +66,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'impersonate', ] MIDDLEWARE = [ @@ -76,6 +77,7 @@ MIDDLEWARE = [ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'impersonate.middleware.ImpersonateMiddleware', ] AUTHLIB_OAUTH_CLIENTS = { @@ -174,4 +176,8 @@ STATICFILES_DIRS = [ LOGIN_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/' -FQD_BASE_URL = 'http://127.0.0.1:8000'
\ No newline at end of file +FQD_BASE_URL = 'http://127.0.0.1:8000' + +# Impersonate settings +REQUIRE_SUPERUSER = True +ALLOW_SUPERUSER = False
\ No newline at end of file |