Merge "Remove unnecessary set_acl calls"

This commit is contained in:
Jenkins 2012-10-08 17:12:01 +00:00 committed by Gerrit Code Review
commit 46d38734ec

View File

@ -105,7 +105,6 @@ class ImagesController(object):
else:
image['tags'] = []
v2.update_image_read_acl(req, self.store_api, self.db_api, image)
image = self._normalize_properties(dict(image))
self.notifier.info('image.update', image)
return image
@ -177,8 +176,6 @@ class ImagesController(object):
raise webob.exc.HTTPNotFound()
image = self._normalize_properties(dict(image))
v2.update_image_read_acl(req, self.store_api, self.db_api, image)
if tags is not None:
self.db_api.image_tag_set_all(req.context, image_id, tags)
image['tags'] = tags