Revision 784a3f1e snf-cyclades-app/synnefo/logic/subnets.py
b/snf-cyclades-app/synnefo/logic/subnets.py | ||
---|---|---|
86 | 86 |
except Network.DoesNotExist: |
87 | 87 |
raise api.faults.ItemNotFound("No network found with that id") |
88 | 88 |
|
89 |
if network.deleted: |
|
90 |
raise api.faults.BadRequest("Network has been deleted") |
|
91 |
|
|
89 | 92 |
if user_id != network.userid: |
90 | 93 |
raise api.faults.Unauthorized("Unauthorized operation") |
91 | 94 |
|
Also available in: Unified diff