#2223 closed defect (fixed)
trac-admin bypasses PermissionStore
Reported by: | Emmanuel Blot | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | general | Version: | 0.9b2 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
trac-admin
as per [2353] bypasses the new PermissionStore
component to retrieve, add and revoke permissions. It therefore ignores any custom PermissionStore
extension: Trac engine uses the extension, but trac-admin
keeps dealing with the SQL backend.
I attach a quite ugly patch to this ticket, as a workaround. I'm sure a better, more "Python" implementation can be written. This patch can be used to enable the TracLdap extension, till a cleaner/better implementation is written by Trac developers.
I think the target should be 0.9, as this issue prevents from deploying a permission component.
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | admin.2.patch added |
---|
comment:2 by , 19 years ago
Status: | new → assigned |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks, applied in [2358].
Patch for trac/scripts/admin.py, to use PermissionStore components