reviewing the tags permission system
[plcapi.git] / PLC / Methods / AddTagType.py
index 3de86b0..4319c12 100644 (file)
@@ -14,7 +14,7 @@ from PLC.TagTypes import TagType, TagTypes
 from PLC.Auth import Auth
 
 can_update = lambda (field, value): field in \
-             ['tagname', 'description', 'category', 'min_role_id']
+             ['tagname', 'description', 'category']
 
 class AddTagType(Method):
     """
@@ -42,6 +42,6 @@ class AddTagType(Method):
         tag_type = TagType(self.api, tag_type_fields)
         tag_type.sync()
 
-       self.object_ids = [tag_type['tag_type_id']]
+        self.object_ids = [tag_type['tag_type_id']]
 
         return tag_type['tag_type_id']