diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-14 00:21:03 +0000 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-14 04:55:26 +0000 |
| commit | 7937144fce54570b2da543663e6ee5e64b1c3cdb (patch) | |
| tree | abd5a7c71ac5f970925f15df5046bf1ab4c0e09a /nova/openstack | |
| parent | 9e81075621950afd86a129c7c9e8380019e15597 (diff) | |
| download | nova-7937144fce54570b2da543663e6ee5e64b1c3cdb.tar.gz nova-7937144fce54570b2da543663e6ee5e64b1c3cdb.tar.xz nova-7937144fce54570b2da543663e6ee5e64b1c3cdb.zip | |
Clean up handling of project_only in network_get
There was some funky logic for getting networks to work around
the project only decorator. This changes the code to match what
we actually want which is:
In Flat and FlatDHCP mode non-admins should be able to access
networks that belong to their project or networks that have no
project_id assigned.
In VlanManager, project_id=None projects should not be accessible
as this means the project hasn't been assigned yet. The assignment
is done with an elevated context.
This patch adds some logic to model_query to allow None in the
project_only filter and makes network_get_all_by_uuids and
network_get use it.
fixes bug 1048869
Change-Id: I5377cea87dec8e9d0d9cec84e07128c5c6e8dca3
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
