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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 24 15:10:33 CEST 2010


Author: torsten
Date: 2010-09-24 15:10:33 +0200 (Fri, 24 Sep 2010)
New Revision: 3773

Modified:
   base/trunk/mpulsweb/templates/casemanagement/main.mako
Log:
Only show copy funtction if case is editable


Modified: base/trunk/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-09-24 10:58:41 UTC (rev 3772)
+++ base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-09-24 13:10:33 UTC (rev 3773)
@@ -165,7 +165,7 @@
                         </a>
                     </li>
                 % endif
-                % if g.mpuls_config.is_enabled('case-module', 'copy'):
+                % if g.mpuls_config.is_enabled('case-module', 'copy') and session.get('case').getState().getState() == 1:
                 <li>
                     <a href="${h.url_for(controller='case', action='copy', 
                                          id=session.get('case').id,



More information about the Mpuls-commits mailing list