| Commit | Date | |
|---|---|---|
|
[r4601]
by
cboos
PermissionPolicy: the !PermissionCache is again at the Request level The Context only has a !PermissionCacheProxy for conveniently delegating calls to the actual cache. There, the permissions for the user are looked-up at most once for each context. In order to differentiate among different "indirect" resources (e.g. attachments) that can share the same (realm,id), a new `Context.permid()` has been introduced. The default implementation should be enough to provide a unique key for the resource in the permission system. In the case of attachments for example, that key can be augmented by the parent context's key. |
2007-01-18 21:12:02 | Tree |
|
[r4600]
by
cboos
PermissionPolicy: several minor fixes and cleanups |
2007-01-18 18:18:05 | Tree |
|
[r4599]
by
cboos
PermissionPolicy: as expected, the Context class can be easily used for describing "pseudo" resources Example: for the !AuthzPolicy plugin (see sample-plugins/authz_policy.py), it is possible to configure the TracIni configuration view to be visible only to administrators, whereas the system information can be viewed by anyone. {{{ [about:systeminfo] |
2007-01-18 17:19:51 | Tree |
| 2007-01-18 16:58:39 | Tree | |
|
[r4597]
by
cboos
Highlighters other than Pygments were broken when no annotations where used. This should fix #4505. |
2007-01-18 16:01:42 | Tree |
| 2007-01-18 15:11:02 | Tree | |
|
[r4595]
by
cboos
PermissionPolicy: clean-up Attachment module |
2007-01-18 14:58:37 | Tree |
| 2007-01-18 11:21:25 | Tree | |
|
[r4593]
by
cmlenz
Simplify the about page: show system information and configuration all on the same page, ''if'' the user has `CONFIG_VIEW` permissions. |
2007-01-18 11:03:56 | Tree |
|
[r4592]
by
cboos
PermissionPolicy: second part of fine grained permissions for attachments The example plugin (sample-plugins/authz_policy.py) has been updated to accept simple verbs instead of full permission names (e.g. DELETE instead of ATTACHMENT_DELETE). |
2007-01-18 10:59:11 | Tree |