app/soc/views/models/host.py
changeset 920 39badbfb80be
parent 913 db38e7680d1c
child 944 5ea2bd9e3fa6
--- a/app/soc/views/models/host.py	Fri Jan 23 11:40:35 2009 +0000
+++ b/app/soc/views/models/host.py	Fri Jan 23 12:00:48 2009 +0000
@@ -78,6 +78,9 @@
 
   pass
 
+# TODO(ljvderijk) rewrite the Host View module to comply with the new request system
+# so that non-developers can create Hosts
+
 class View(role.View):
   """View methods for the Host model.
   """
@@ -91,8 +94,9 @@
     """
 
     rights = {}
-    rights['create'] = [access.checkIsHost]
-    rights['edit'] = [access.checkIsHost]
+    rights['create'] = [access.checkIsDeveloper]
+    # TODO(ljvderijk) write the edit check
+    #rights['edit'] = [access.checkIsMyHost]
     rights['list'] = [access.checkIsHost]
 
     new_params = {}