diff templates/classic/html/user.index.html @ 3742:a9f6eb633452

nicer "permission required" messages (patch [SF#1558183])
author Richard Jones <richard@users.sourceforge.net>
date Thu, 09 Nov 2006 01:26:29 +0000
parents 021b131bd816
children
line wrap: on
line diff
--- a/templates/classic/html/user.index.html	Thu Nov 09 01:21:21 2006 +0000
+++ b/templates/classic/html/user.index.html	Thu Nov 09 01:26:29 2006 +0000
@@ -6,9 +6,14 @@
  i18n:translate="">User listing</span>
 <td class="content" metal:fill-slot="content">
 
-<span tal:condition="not:context/is_view_ok"
+<span tal:condition="python:not (context.is_view_ok()
+ or request.user.hasRole('Anonymous'))"
  i18n:translate="">You are not allowed to view this page.</span>
 
+<span tal:condition="python:not context.is_view_ok()
+ and request.user.hasRole('Anonymous')"
+ i18n:translate="">Please login with your username and password.</span>
+
 <table width="100%" tal:condition="context/is_view_ok" class="list">
 <tr>
  <th i18n:translate="">Username</th>

Roundup Issue Tracker: http://roundup-tracker.org/