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
This commit is contained in:
ShaoHe Feng 2015-03-05 22:05:18 +08:00
parent 4103a86f30
commit e51a97906e
1 changed files with 0 additions and 1 deletions

View File

@ -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()