From 1f24cda8143ee53d1c4f5da55014f0431d11b55a Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 20 Sep 2006 14:00:32 +0000 Subject: [PATCH] - removed tech role check --- PLC/Methods/AdmUpdateNodeNetwork.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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) -- 2.47.0