remove simplejson dependency
[plcapi.git] / PLC / Methods / GetNetworkMethods.py
index c678447..cee914a 100644 (file)
@@ -9,7 +9,7 @@ class GetNetworkMethods(Method):
     Returns a list of all valid network methods.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node']
 
     accepts = [
         Auth()
@@ -17,5 +17,6 @@ class GetNetworkMethods(Method):
 
     returns = [NetworkMethod.fields['method']]
 
+
     def call(self, auth):
-        return [network_method['method'] for network_method in NetworkMethods(self.api).values()]
+        return [network_method['method'] for network_method in NetworkMethods(self.api)]