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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 16 09:20:37 CET 2011


Author: torsten
Date: 2011-11-16 09:20:37 +0100 (Wed, 16 Nov 2011)
New Revision: 5588

Modified:
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
User function user_is_editor to check if the current user is editor of the
case.


Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2011-11-16 08:20:01 UTC (rev 5587)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2011-11-16 08:20:37 UTC (rev 5588)
@@ -161,7 +161,7 @@
 
 <%def name="get_state_icon(case)">
   % if h.hasRole(['cm']) and g.mpuls_config.is_enabled('case-module', 'organisation'):
-    % if str(case.editor_id) == str(session.get('USER_AUTHORIZED').id):
+    % if case.user_is_editor(session.get('USER_AUTHORIZED').id):
       <img src    = "${h.url_for('/images/icons/edit_editor.png')}"
            border = "0"
            alt    = "${_('Editor')}"



More information about the Mpuls-commits mailing list