Skip to content

Commit 572632a

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 81a2af8 commit 572632a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fixed:
1212
- fix port number as int in mysql connection info (sf bug 1082530)
1313
- fix setup.py to work with <Python2.3 (sf bug 1082801)
1414
- fix permissions checks in cgi templating (sf bug 1082755)
15+
- fix "Users may only edit their issues" example in docs
1516

1617

1718
2004-12-08 0.8.0b1

doc/customizing.txt

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

5-
:Version: $Revision: 1.161.2.2 $
5+
:Version: $Revision: 1.161.2.3 $
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
@@ -3931,10 +3931,10 @@ First up, we create the new Role and Permission structure in
39313931
def own_issue(db, userid, itemid):
39323932
'''Determine whether the userid matches the creator of the issue.'''
39333933
return userid == db.issue.get(itemid, 'creator')
3934-
p = db.security.addPermission(name='Edit Own Issues', klass='issue',
3934+
p = db.security.addPermission(name='Edit', klass='issue',
39353935
code=own_issue, description='Can only edit own issues')
39363936
db.security.addPermissionToRole('Provisional User', p)
3937-
p = db.security.addPermission(name='View Own Issues', klass='issue',
3937+
p = db.security.addPermission(name='View', klass='issue',
39383938
code=own_issue, description='Can only view own issues')
39393939
db.security.addPermissionToRole('Provisional User', p)
39403940

0 commit comments

Comments
 (0)