Skip to content

Commit 5a2670a

Browse files
author
Richard Jones
committed
re patch [SF#558183]
1 parent 71f1f09 commit 5a2670a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

templates/minimal/html/user.item.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232

3333
<td class="content" metal:fill-slot="content">
3434

35-
<p tal:condition="not:context/is_view_ok" i18n:translate="">You are not
36-
allowed to view this page.</p>
35+
<p tal:condition="python:not (context.is_view_ok()
36+
or request.user.hasRole('Anonymous'))" i18n:translate="">
37+
You are not allowed to view this page.</p>
38+
39+
<p tal:condition="python:not context.is_view_ok()
40+
and request.user.hasRole('Anonymous')" i18n:translate="">
41+
Please login with your username and password.</p>
3742

3843
<div tal:condition="context/is_view_ok">
3944

0 commit comments

Comments
 (0)