Roundup Tracker - Issues

Issue 1558183

classification
message when not logged in
Type: Severity: normal
Components: User Interface Versions:
process
Status: closed fixed
:
: richard : nerijus, richard
Priority: normal : patch

Created on 2006-09-13 20:53 by nerijus, last changed 2006-12-20 00:59 by nerijus.

Files
File name Uploaded Description Edit Remove
roundup-1.1.2.patch nerijus, 2006-09-13 20:53 patch
Messages
msg2870 Author: [hidden] (nerijus) Date: 2006-09-13 20:53
Hello,

When I click a link to a roundup issue 
(http://example.com/roundup/support/issue395) and I 
am not logged in, I get a login box on the left and a 
message that I don't have permissions to access the 
page. I changed current behaviour in such way:

If user is not logged in (i.e. his role is Anonymous) 
and he does not have permissions, he gets a 
message "Please login with your username and 
password". If he is logged in, but has no 
permissions, he gets a message as earlier: "You are 
not allowed to view this page".
msg2871 Author: [hidden] (richard) Date: 2006-11-09 01:26
Logged In: YES 
user_id=6405

Thanks!
msg2872 Author: [hidden] (nerijus) Date: 2006-12-20 00:59
The patch was applied except templates/minimal/html/user.item.html. Missing patch here:

--- user.item.html.orig 2006-11-09 03:24:08.000000000 +0200
+++ user.item.html      2006-12-20 02:55:16.000000000 +0200
@@ -32,8 +32,13 @@
 
 <td class="content" metal:fill-slot="content">
 
-<p tal:condition="not:context/is_view_ok" i18n:translate="">You are not
-    allowed to view this page.</p>
+<p tal:condition="python:not (context.is_view_ok()
+ or request.user.hasRole('Anonymous'))" i18n:translate="">
+ You are not allowed to view this page.</p>
+
+<p tal:condition="python:not context.is_view_ok()
+ and request.user.hasRole('Anonymous')" i18n:translate="">
+ Please login with your username and password.</p>
 
 <div tal:condition="context/is_view_ok">
 
History
Date User Action Args
2006-09-13 20:53:54nerijuscreate