From: Mark Huang Date: Wed, 20 Sep 2006 14:44:42 +0000 (+0000) Subject: - remove unnecessary admin check X-Git-Tag: pycurl-7_13_1~730 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d45485d9d4e9c2e886b6ed2f52adf6c3a14d1981;p=plcapi.git - remove unnecessary admin check --- diff --git a/PLC/Methods/AdmDeleteNodeGroup.py b/PLC/Methods/AdmDeleteNodeGroup.py index cadc32ed..a255088d 100644 --- a/PLC/Methods/AdmDeleteNodeGroup.py +++ b/PLC/Methods/AdmDeleteNodeGroup.py @@ -2,7 +2,6 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Auth import PasswordAuth -from PLC.Nodes import Node, Nodes from PLC.NodeGroups import NodeGroup, NodeGroups class AdmDeleteNodeGroup(Method): @@ -32,12 +31,6 @@ class AdmDeleteNodeGroup(Method): nodegroup = nodegroups.values()[0] - # If we are not an admin, make sure that the caller is a - # member of the site at which the node is located. - if 'admin' not in self.caller['roles']: - # Authenticated function - raise PLCPermissionDenied, "Not allowed to delete nodes groups" - nodegroup.delete() return 1