From e51a97906eb0afd187c7d6fc85123751772d3229 Mon Sep 17 00:00:00 2001 From: ShaoHe Feng Date: Thu, 5 Mar 2015 22:05:18 +0800 Subject: [PATCH] Remove db layer hard-code permission checks for network_get_by_uuid This patches removes db layer hard-code permission checks for network_get_by_uuid. It is called by the follow function: 1. network_api.get, context is elevated. 2. delete_network, context is elevated. 3. get_network, context is elevated. Partially implements bp v3-api-policy Change-Id: I2b75d0fe502aa27bf1c8994cdbac55ec173f70ed --- nova/db/sqlalchemy/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 1c20b92f7795..f1390cdfbbdb 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -2881,7 +2881,6 @@ def _network_get_query(context, session=None): read_deleted="no") -@require_admin_context def network_get_by_uuid(context, uuid): result = _network_get_query(context).filter_by(uuid=uuid).first()