We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2355bdd commit 513a1d7Copy full SHA for 513a1d7
templates/classic/html/page.html
@@ -49,12 +49,10 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
49
</form>
50
51
<p class="classblock"
52
- tal:condition="python:request.user.hasPermission('View', 'keyword')">
+ tal:condition="python:request.user.hasPermission('Edit', 'keyword')">
53
<b>Keywords</b><br>
54
- <a tal:condition="python:request.user.hasPermission('Edit', 'keyword')"
55
- href="keyword?@template=item">Create New<br></a>
56
- <a tal:condition="python:request.user.hasPermission('Edit', 'keyword') and
57
- len(db.keyword.list())"
+ <a href="keyword?@template=item">Create New<br></a>
+ <a tal:condition="db/keyword/list"
58
href="keyword?@template=item">Edit Existing<br></a>
59
</p>
60
0 commit comments