Revision 5b9f9c52 snf-cyclades-app/synnefo/api/subnets.py

b/snf-cyclades-app/synnefo/api/subnets.py
157 157
    user_id = request.user_uniq
158 158
    subnet = subnets.get_subnet(sub_id)
159 159

  
160
    if subnet.network.userid != user_id:
160
    if (subnet.network.userid != user_id) and (subnet.network.public is False):
161 161
        raise api.faults.Unauthorized("You're not allowed to view this subnet")
162 162

  
163 163
    subnet_dict = subnet_to_dict(subnet)

Also available in: Unified diff