1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

fix django2 syntax

This commit is contained in:
王健辉
2021-04-21 23:38:53 +08:00
parent 64ad908637
commit 05a55b38c4
24 changed files with 44 additions and 41 deletions

View File

@@ -80,7 +80,7 @@ class ShibbolethRemoteUserMiddleware(RemoteUserMiddleware):
# If the user is already authenticated and that user is the user we are
# getting passed in the headers, then the correct user is already
# persisted in the session and we don't need to continue.
if request.user.is_authenticated():
if request.user.is_authenticated:
if request.user.username == username:
if request.user.is_staff:
update_sudo_mode_ts(request)