app/soc/logic/models/document.py
changeset 1594 b80bf089d5f7
parent 1517 a467d13e34ea
child 1669 47c1048fc4ef
--- a/app/soc/logic/models/document.py	Mon Mar 02 19:48:20 2009 +0000
+++ b/app/soc/logic/models/document.py	Mon Mar 02 20:32:59 2009 +0000
@@ -61,6 +61,12 @@
 
     return ['prefix', 'scope_path', 'link_id']
 
+  def isDeletable(self, entity):
+    """See base.Logic.isDeletable.
+    """
+
+    return not entity.home
+
   def _updateField(self, entity, entity_properties, name):
     """Special logic for role. If state changes to active we flush the sidebar.
     """