From 3b2242c44a33c9220b8d55621c003b8b4bcfaaa8 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 21 Sep 2006 19:14:27 +0000 Subject: [PATCH] - remove redundant auth check --- PLC/Methods/AdmGetAllNodeNetworkBandwidthLimits.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/PLC/Methods/AdmGetAllNodeNetworkBandwidthLimits.py b/PLC/Methods/AdmGetAllNodeNetworkBandwidthLimits.py index 463d9a3e..a477b94b 100644 --- a/PLC/Methods/AdmGetAllNodeNetworkBandwidthLimits.py +++ b/PLC/Methods/AdmGetAllNodeNetworkBandwidthLimits.py @@ -1,5 +1,3 @@ -import os - from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -9,7 +7,6 @@ from PLC.Auth import PasswordAuth class AdmGetAllNodeNetworkBandwidthLimits(Method): """ Returns an array of all the valid bandwith limits for node networks. - """ roles = ['admin', 'pi', 'user', 'tech'] @@ -21,9 +18,4 @@ class AdmGetAllNodeNetworkBandwidthLimits(Method): returns = [NodeNetwork.fields['bwlimit']] def call(self, auth): - # Authenticated function - assert self.caller is not None - - nodenetwork_bwlimits = NodeNetwork.bwlimits - - return nodenetwork_bwlimits + return NodeNetwork.bwlimits -- 2.47.0