Adds a missing skip for a network ownership check for admins
and advanced services. This was found via an API test.
Change-Id: I796f6abf56dc7ff0f374b9912b92085f4a993a27
# TODO(salvatore-orlando): consider whether this check can be folded
# in the policy engine
rtype = request.resource_type
- if rtype not in ('port', 'subnet'):
+ if (request.context.is_admin or request.context.is_advsvc or
+ rtype not in ('port', 'subnet')):
return
plugin = manager.NeutronManager.get_plugin()
network = plugin.get_network(request.context,