step2 : basic functions for handling nodetags and nodegroups - still highly volatile
[plcapi.git] / PLC / Methods / GetNodeGroups.py
index 478eb99..5711217 100644 (file)
@@ -14,12 +14,12 @@ class GetNodeGroups(Method):
     is specified, only the specified details will be returned.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
 
     accepts = [
         Auth(),
         Mixed([Mixed(NodeGroup.fields['nodegroup_id'],
-                     NodeGroup.fields['name'])],
+                     NodeGroup.fields['groupname'])],
               Filter(NodeGroup.fields)),
         Parameter([str], "List of fields to return", nullok = True)
         ]