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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user