Skip to content

Commit 2589bd5

Browse files
author
Richard Jones
committed
fix "All users may only view and edit issues, files and messages they...
...create" example in docs [SF#1439086]
1 parent cafe713 commit 2589bd5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Fixed:
1515
- typo in SMTP TLS option name: "MAIL_TLS_CERFILE" (sf bug 1435452)
1616
- email obfuscation code in html templating is more robust
1717
- fix blank-title subject line handling (sf bug 1442121)
18+
- fix "All users may only view and edit issues, files and messages they
19+
create" example in docs (sf bug 1439086)
20+
1821

1922

2023
2006-02-10 1.1.0

doc/customizing.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.193 $
5+
:Version: $Revision: 1.194 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -4266,6 +4266,7 @@ for the "issue", "file" and "msg" classes with the following::
42664266
def checker(klass):
42674267
def check(db, userid, itemid, klass=klass):
42684268
return db.getclass(klass).get(itemid, 'creator') == userid
4269+
return check
42694270
for cl in 'issue', 'file', 'msg':
42704271
p = db.security.addPermission(name='View', klass=cl,
42714272
check=checker(cl))

0 commit comments

Comments
 (0)