[Mpuls-commits] r4661 - base/trunk/mpulsweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 21 10:18:01 CET 2011
Author: torsten
Date: 2011-02-21 10:18:00 +0100 (Mon, 21 Feb 2011)
New Revision: 4661
Modified:
base/trunk/mpulsweb/templates/casemanagement/main.mako
Log:
* mpulsweb/templates/casemanagement/main.mako: Issue1831: Only show link to copy a case if the user has CM-role.
Modified: base/trunk/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/main.mako 2011-02-21 08:49:58 UTC (rev 4660)
+++ base/trunk/mpulsweb/templates/casemanagement/main.mako 2011-02-21 09:18:00 UTC (rev 4661)
@@ -165,7 +165,7 @@
</a>
</li>
% endif
- % if g.mpuls_config.is_enabled('case-module', 'copy') and session.get('case').getState().getState() == 1:
+ % if g.mpuls_config.is_enabled('case-module', 'copy') and session.get('case').getState().getState() == 1 and h.hasRole(['cm']):
<li>
<a href="${h.url_for(controller='case', action='copy',
id=session.get('case').id,
More information about the Mpuls-commits
mailing list