Skip to content

Commit

Permalink
[#3196] Remove debugger call, return response object
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 23, 2016
1 parent 889978b commit 9de80d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/views/__init__.py
Expand Up @@ -20,7 +20,6 @@ def check_session_cookie(response):
checks whether a user is logged in, and determines the validity of the
session cookie, removing it if necessary.
'''
import ipdb; ipdb.set_trace()
for cookie in request.cookies:
# Remove the ckan session cookie if logged out.
if cookie == u'ckan' and not g.get('user'):
Expand Down Expand Up @@ -70,6 +69,8 @@ def set_cors_headers_for_response(response):
response.headers[u'Access-Control-Allow-Headers'] = \
u'X-CKAN-API-KEY, Authorization, Content-Type'

return response


def identify_user():
u'''Try to identify the user
Expand Down

0 comments on commit 9de80d1

Please sign in to comment.