--- doc/customizing.txt~ 2005-02-07 17:22:58.000000000 +0200 +++ doc/customizing.txt 2005-02-07 17:23:52.000000000 +0200 @@ -899,7 +899,7 @@ A sequence of property names that are the only properties to apply the new Permission to (eg. ``... klass='user', properties=('name', 'email') ...``) -**code** +**check** A function to be execute which returns boolean determining whether the Permission is allowed. The function has the signature ``check(db, userid, itemid)`` where ``db`` is a handle on the open database, ``userid`` is @@ -3945,10 +3945,10 @@ '''Determine whether the userid matches the creator of the issue.''' return userid == db.issue.get(itemid, 'creator') p = db.security.addPermission(name='Edit', klass='issue', - code=own_issue, description='Can only edit own issues') + check=own_issue, description='Can only edit own issues') db.security.addPermissionToRole('Provisional User', p) p = db.security.addPermission(name='View', klass='issue', - code=own_issue, description='Can only view own issues') + check=own_issue, description='Can only view own issues') db.security.addPermissionToRole('Provisional User', p) # Assign the Permissions for issue-related classes