Load flask principal permissions even for web and api endpoints.
This commit is contained in:
parent
23cbcb2979
commit
9278871381
6 changed files with 33 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue