Fix logout on reauth page

This commit is contained in:
Raphael Michel
2018-04-26 19:26:45 +02:00
parent ed88a8e3e3
commit 30f8afca85
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ class PermissionMiddleware(MiddlewareMixin):
logout(request)
return self._login_redirect(request)
except SessionReauthRequired:
if url_name != 'user.reauth':
if url_name not in ('user.reauth', 'auth.logout'):
return redirect(reverse('control:user.reauth') + '?next=' + quote(request.get_full_path()))
if 'event' in url.kwargs and 'organizer' in url.kwargs: