Remove db layer hard-code permission checks for network_get_by_cidr
This patches removes db layer hard-code permission checks for network_get_by_cidr. It is called by the follow function: 1. delete_network in network/manager.py, and context is elevated. 2. modify in cmd/manage.py, the context is admin context Partially implements bp v3-api-policy Change-Id: I0cb02cf1fe5764558441acda5262d2c7928cebf3
This commit is contained in:
parent
4103a86f30
commit
6017a2a40b
@ -2891,7 +2891,6 @@ def network_get_by_uuid(context, uuid):
|
||||
return result
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def network_get_by_cidr(context, cidr):
|
||||
result = _network_get_query(context).\
|
||||
filter(or_(models.Network.cidr == cidr,
|
||||
|
Loading…
Reference in New Issue
Block a user