[Mpuls-commits] r4897 - in base/trunk: . mpulsweb/templates/administration
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 11 09:45:42 CEST 2011
Author: torsten
Date: 2011-04-11 09:45:41 +0200 (Mon, 11 Apr 2011)
New Revision: 4897
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/templates/administration/edit_user.mako
Log:
Issue1906: Hide option to reset password for the admins own account.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-04-11 07:34:37 UTC (rev 4896)
+++ base/trunk/ChangeLog 2011-04-11 07:45:41 UTC (rev 4897)
@@ -2,6 +2,8 @@
* mpulsweb/public/styles/all.css: Added ".invisible" classe to set
dislay = None for all elements.
+ * mpulsweb/templates/administration/edit_user.mako: Issue1906: Hide
+ option to reset the password for the admins own account.
2011-04-08 Björn Ricks <bjoern.ricks at intevation.de>
Modified: base/trunk/mpulsweb/templates/administration/edit_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/edit_user.mako 2011-04-11 07:34:37 UTC (rev 4896)
+++ base/trunk/mpulsweb/templates/administration/edit_user.mako 2011-04-11 07:45:41 UTC (rev 4897)
@@ -22,8 +22,14 @@
<div id="modusfield">
<div class="actions">
<ul>
- <li> <a href="${h.url_for(controller='/administration', action='resetUserPassword', id=c.uo.id)}"> ${_('Reset user password')}</a> </li>
- <li> <a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}"> ${_('Back to: User overview')} </a></li>
+ %if str(c.uo.id) != str(session.get('USER_AUTHORIZED').id):
+ <li>
+ <a href="${h.url_for(controller='/administration', action='resetUserPassword', id=c.uo.id)}">${_('Reset user password')}</a>
+ </li>
+ % endif
+ <li>
+ <a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}"> ${_('Back to: User overview')} </a>
+ </li>
</ul>
</div>
</div>
More information about the Mpuls-commits
mailing list