Merge branch 'django-2-upgrade' into 'master'
major: update to DjangoLDPv1 See merge request djangoldp-packages/djangoldp-notification!30
This commit is contained in:
commit
32f4c8fa0e
@ -20,7 +20,7 @@ class CurrentUserMiddleware:
|
|||||||
# so no signal handler should be attached
|
# so no signal handler should be attached
|
||||||
return
|
return
|
||||||
|
|
||||||
if hasattr(request, 'user') and request.user.is_authenticated():
|
if hasattr(request, 'user') and request.user.is_authenticated:
|
||||||
user = request.user
|
user = request.user
|
||||||
else:
|
else:
|
||||||
user = None
|
user = None
|
||||||
|
Loading…
Reference in New Issue
Block a user