Changes between Version 7 and Version 8 of TracDev/SecurityBranch
- Timestamp:
- Aug 23, 2007, 6:25:15 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/SecurityBranch
v7 v8 57 57 #!python 58 58 59 # Check for permission, explicitly providing the realm ("wiki") and id 60 # ("WikiStart") 61 if 'WIKI_MODIFY' in req.perm('wiki', 'WikiStart'): 59 # Check for permission, explicitly providing the realm ("wiki"), id 60 # ("WikiStart") and version ("20"). All of these are optional but you must 61 # provide all components up to the most specific you require. eg. if you 62 # wish to restrict 'WikiStart' you must provide ('wiki', 'WikiStart'). 63 if 'WIKI_MODIFY' in req.perm('wiki', 'WikiStart', 20): 62 64 ... 63 65