Mercurial > p > roundup > code
diff doc/customizing.txt @ 3580:5c26b9bbd31a
fix "All users may only view and edit issues, files and messages they...
...create" example in docs [SF#1439086]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 02 Mar 2006 23:47:13 +0000 |
| parents | 61d48244e7a8 |
| children | 026adc5f1e13 |
line wrap: on
line diff
--- a/doc/customizing.txt Thu Mar 02 23:45:23 2006 +0000 +++ b/doc/customizing.txt Thu Mar 02 23:47:13 2006 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.193 $ +:Version: $Revision: 1.194 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -4266,6 +4266,7 @@ def checker(klass): def check(db, userid, itemid, klass=klass): return db.getclass(klass).get(itemid, 'creator') == userid + return check for cl in 'issue', 'file', 'msg': p = db.security.addPermission(name='View', klass=cl, check=checker(cl))
