From: Tony Mack Date: Wed, 20 Sep 2006 14:00:32 +0000 (+0000) Subject: - removed tech role check X-Git-Tag: pycurl-7_13_1~737 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1f24cda8143ee53d1c4f5da55014f0431d11b55a;p=plcapi.git - removed tech role check --- diff --git a/PLC/Methods/AdmUpdateNodeNetwork.py b/PLC/Methods/AdmUpdateNodeNetwork.py index 22d57f41..ebaddc34 100644 --- a/PLC/Methods/AdmUpdateNodeNetwork.py +++ b/PLC/Methods/AdmUpdateNodeNetwork.py @@ -48,14 +48,7 @@ class AdmUpdateNodeNetwork(Method): if not nodenetworks: raise PLCInvalidArgument, "No such node network" nodenetwork = nodenetworks[0] - - # Get Node using this node network - #nodes = Nodes(self.api, [nodenetwork['node_id']]).values() - #if not nodes: - # raise PLCPermissionDenied, "Node network is not associated with a node" - #node = nodes[0] - - + # If we are not an admin, make sure that the caller is a # member of the site where the node exists. if 'admin' not in self.caller['roles']: @@ -65,8 +58,6 @@ class AdmUpdateNodeNetwork(Method): node = nodes[0] if node['site_id'] not in self.caller['site_ids']: raise PLCPermissionDenied, "Not allowed to update node network" - if 'tech' not in self.caller['roles']: - raise PLCPermissionDenied, "User account not allowed to update node network" # Update node network nodenetwork.update(optional_vals)