Fixed a bug in document logic
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 04 Mar 2009 23:10:13 +0000
changeset 1669 47c1048fc4ef
parent 1668 e3780ee24322
child 1670 4d9bd851a5f5
Fixed a bug in document logic Patch by: Sverre Rabbelier
app/soc/logic/models/document.py
--- a/app/soc/logic/models/document.py	Wed Mar 04 22:35:54 2009 +0000
+++ b/app/soc/logic/models/document.py	Wed Mar 04 23:10:13 2009 +0000
@@ -65,7 +65,7 @@
     """See base.Logic.isDeletable.
     """
 
-    return not entity.home
+    return not entity.home_for
 
   def _updateField(self, entity, entity_properties, name):
     """Special logic for role. If state changes to active we flush the sidebar.