From: Tony Mack Date: Thu, 19 Jul 2007 16:43:22 +0000 (+0000) Subject: - fix bug limited what nodes were returned to non admins X-Git-Tag: PLCAPI-4.2-0~102 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=08adceab4b42141c4f3a7e871f94535e6ca46747;p=plcapi.git - fix bug limited what nodes were returned to non admins --- diff --git a/PLC/Methods/GetNodes.py b/PLC/Methods/GetNodes.py index b0e8c0f3..38dc8f01 100644 --- a/PLC/Methods/GetNodes.py +++ b/PLC/Methods/GetNodes.py @@ -43,6 +43,7 @@ class GetNodes(Method): for node in nodes: # if node has whitelist, make sure the user has a slice on the whitelist if 'slice_ids_whitelist' in node and \ + node['slice_ids_whitelist'] and \ not slice_ids.intersection(node['slice_ids_whitelist']): nodes.remove(node) continue