Always show the edit link on your own record

This commit is contained in:
Rob Crittenden 2007-12-06 17:07:40 -05:00
parent eb141b02ff
commit 849803d37a

View File

@ -11,7 +11,7 @@ edit_url = tg.url('/user/edit', uid=user.get('uid'))
?> ?>
<h1>View User</h1> <h1>View User</h1>
<input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups" <input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups or tg.identity.display_name == user.get('uid')"
class="submitbutton" type="button" class="submitbutton" type="button"
onclick="document.location.href='${edit_url}'" onclick="document.location.href='${edit_url}'"
value="Edit User" /> value="Edit User" />
@ -374,7 +374,7 @@ else:
<br/> <br/>
<hr /> <hr />
<input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups" <input py:if="'editors' in tg.identity.groups or 'admins' in tg.identity.groups or tg.identity.display_name == user.get('uid')"
class="submitbutton" type="button" class="submitbutton" type="button"
onclick="document.location.href='${edit_url}'" onclick="document.location.href='${edit_url}'"
value="Edit User" /> value="Edit User" />