Mercurial > p > roundup > code
comparison doc/design.txt @ 2983:9614a101b68f
Stuff from the train ride this morning:
- Extend the property concept in Permissions to allow a list of properties
- Fix the cgi templating code to check the correct permission when
rendering edit fields
- A swag of changes (just the start) fixing up the customisation doc for
the new tracker layout and permissions setup
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 30 Nov 2004 08:32:57 +0000 |
| parents | 2e3f3204afc9 |
| children | 460eb0209a9e |
comparison
equal
deleted
inserted
replaced
| 2982:22f16d0646ce | 2983:9614a101b68f |
|---|---|
| 1399 class Permission: | 1399 class Permission: |
| 1400 ''' Defines a Permission with the attributes | 1400 ''' Defines a Permission with the attributes |
| 1401 - name | 1401 - name |
| 1402 - description | 1402 - description |
| 1403 - klass (optional) | 1403 - klass (optional) |
| 1404 - properties (optional) | |
| 1405 - check function (optional) | |
| 1404 | 1406 |
| 1405 The klass may be unset, indicating that this permission is | 1407 The klass may be unset, indicating that this permission is |
| 1406 not locked to a particular hyperdb class. There may be | 1408 not locked to a particular hyperdb class. There may be |
| 1407 multiple Permissions for the same name for different | 1409 multiple Permissions for the same name for different |
| 1408 classes. | 1410 classes. |
| 1411 | |
| 1412 If property names are set, permission is restricted to those | |
| 1413 properties only. | |
| 1414 | |
| 1415 If check function is set, permission is granted only when | |
| 1416 the function returns value interpreted as boolean true. | |
| 1417 The function is called with arguments db, userid, itemid. | |
| 1409 ''' | 1418 ''' |
| 1410 | 1419 |
| 1411 class Role: | 1420 class Role: |
| 1412 ''' Defines a Role with the attributes | 1421 ''' Defines a Role with the attributes |
| 1413 - name | 1422 - name |
