diff templates/minimal/html/user.register.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 70e46f9dadfc
children
line wrap: on
line diff
--- a/templates/minimal/html/user.register.html	Thu Nov 09 01:21:21 2006 +0000
+++ b/templates/minimal/html/user.register.html	Thu Nov 09 01:26:29 2006 +0000
@@ -11,9 +11,12 @@
 <tal:block tal:define=" editok python:request.user.username=='anonymous' and
            request.user.hasPermission('Web Registration')">
 
-<span tal:condition="python:not editok"
+<span tal:condition="python:not (editok or request.user.hasRole('Anonymous'))"
  i18n:translate="">You are not allowed to view this page.</span>
 
+<span tal:condition="python:not editok and request.user.hasRole('Anonymous')"
+ i18n:translate="">Please login with your username and password.</span>
+
 <tal:block tal:condition="editok">
 <form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">
 <input type="hidden" name=":template" value="register">

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