remove simplejson dependency
[plcapi.git] / PLC / Methods / GetNetworkMethods.py
index b29ad37..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,8 +17,6 @@ class GetNetworkMethods(Method):
 
     returns = [NetworkMethod.fields['method']]
 
-    event_type = 'Get'
-    object_type = 'NetworkMethod'
 
     def call(self, auth):
         return [network_method['method'] for network_method in NetworkMethods(self.api)]