Fixed typo in variable name.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Mar 2009 10:40:20 +0000
changeset 1976 be994529deee
parent 1975 e9bc96529849
child 1977 2dab2aac313d
Fixed typo in variable name. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/logic/models/role.py
--- a/app/soc/logic/models/role.py	Sat Mar 21 08:47:25 2009 +0000
+++ b/app/soc/logic/models/role.py	Sat Mar 21 10:40:20 2009 +0000
@@ -45,7 +45,7 @@
     super(Logic, self).__init__(model, base_model=base_model,
                                 scope_logic=scope_logic)
 
-    self.dissalow_last_resign = disallow_last_resign
+    self.disallow_last_resign = disallow_last_resign
 
 
   def getGroupEntityFromScopePath(self, group_logic, scope_path):
@@ -102,7 +102,7 @@
       - Error message otherwise.
     """
 
-    if self.dissalow_last_resign:
+    if self.disallow_last_resign:
      # check if this is the last active role for it's scope
      fields = {'scope': entity.scope,
           'status': 'active'}