[Mpuls-commits] r2975 - base/trunk/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 10 12:43:11 CEST 2010


Author: torsten
Date: 2010-06-10 12:43:10 +0200 (Thu, 10 Jun 2010)
New Revision: 2975

Modified:
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Only show icons for editor and standin if organisation is enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-06-10 10:40:17 UTC (rev 2974)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-06-10 10:43:10 UTC (rev 2975)
@@ -179,8 +179,7 @@
 </%def>
 
 <%def name="get_state_icon(case)">
-  
-  % if h.hasRole(['cm_ka']):
+  % if h.hasRole(['cm_ka']) and g.mpuls_config.is_enabled('case-module', 'organisation'):
     % if str(case.getEditor().id) == str(session.get('USER_AUTHORIZED').id):
       <img src    = "${h.url_for('/images/icons/edit_editor.png')}"
            border = "0"



More information about the Mpuls-commits mailing list