Load flask principal permissions even for web and api endpoints.

This commit is contained in:
yackob03 2013-09-26 16:32:09 -04:00
parent 23cbcb2979
commit 9278871381
6 changed files with 33 additions and 15 deletions

View file

@ -219,7 +219,7 @@ def get_image_ancestry(namespace, repository, image_id, headers):
image_id))
except IOError:
abort(404) #'Image not found', 404)
response = make_response(json.dumps(json.loads(data)), 200)
response = make_response(json.dumps(json.loads(data)), 200)
response.headers.extend(headers)
return response