Bugfixes to last commit
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 23 Jan 2009 16:53:19 +0000
changeset 926 390c8a98cdd0
parent 925 a85719e94570
child 927 f790f77ba6b7
Bugfixes to last commit Access rights for 'home' pages and an errornous endif tag. Patch by: Sverre Rabbelier
app/soc/templates/soc/templatetags/_as_table_row.html
app/soc/views/models/presence.py
--- a/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 16:23:01 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 16:53:19 2009 +0000
@@ -44,5 +44,5 @@
     <td class="formfieldexample">{{ example_text|safe }}</td>
   {% else %}
     <td></td>
-  {% endif %} {% endif %}
+  {% endif %}
 </tr>
--- a/app/soc/views/models/presence.py	Fri Jan 23 16:23:01 2009 +0000
+++ b/app/soc/views/models/presence.py	Fri Jan 23 16:53:19 2009 +0000
@@ -56,7 +56,11 @@
       params: a dict with params for this View
     """
 
+    rights = {}
+    rights['home'] = [access.allow]
+
     new_params = {}
+    new_params['rights'] = rights
 
     new_params['extra_dynaexclude'] = ['home', 'tos']
     new_params['home_template'] = 'soc/presence/home.html'