[Mpuls-commits] r2973 - base/trunk/mpulsweb/templates/usersettings

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


Author: torsten
Date: 2010-06-10 12:34:48 +0200 (Thu, 10 Jun 2010)
New Revision: 2973

Modified:
   base/trunk/mpulsweb/templates/usersettings/show_settings.mako
Log:
* mpulsweb/templates/usersettings/show_settings.mako: Only show link to set standard-standin if organisation is enabled.


Modified: base/trunk/mpulsweb/templates/usersettings/show_settings.mako
===================================================================
--- base/trunk/mpulsweb/templates/usersettings/show_settings.mako	2010-06-10 10:31:29 UTC (rev 2972)
+++ base/trunk/mpulsweb/templates/usersettings/show_settings.mako	2010-06-10 10:34:48 UTC (rev 2973)
@@ -12,7 +12,9 @@
       <ul>
         <li><a href="${h.url_for(controller='/usersettings', action='changePassword', id=h.getUserId())}"> ${_('usersettings_a_change_pw')}</a></li>
         % if h.hasRole(['cm_ka']):
-          <li><a href="${h.url_for(controller='/usersettings', action='editStandin', id=h.getUserId())}"> ${_('usersettings_a_change_replace')}</a></li>
+          % if g.mpuls_config.is_enabled('case-module', 'organisation'):
+            <li><a href="${h.url_for(controller='/usersettings', action='editStandin', id=h.getUserId())}"> ${_('usersettings_a_change_replace')}</a></li>
+          % endif
         % endif
       </ul>
     </div>



More information about the Mpuls-commits mailing list