# The 'logout' view doesn't require that the person is logged in.
+ # Check permission to continue or display login form.
if not self.has_permission(request):
- response = self.login(request)
- # make sure that there is a response before returning
- # this addresses any post data that might persist from
- # expired sessions and continue through (#5999)
+ return self.login(request)
# overwrite request.POST with the saved post_data, and continue