Ticket #2546 (closed defect: duplicate)
Cannot remove default permissions when the module defining the action is disabled
| Reported by: | eblot | Owned by: | daniel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/console | Version: | devel |
| Severity: | minor | Keywords: | permission |
| Cc: |
Description (last modified by cmlenz) (diff)
When a new project ("environment") is created, a set of default permissions is automatically granted.
If the project administrator edits the project config file (trac.ini) to disable some module(s), following the documentation, the project ends up in a dead-lock situation:
trac-admin refuses to revoke existing permissions if the action is defined in the disabled component. This permission for this action has not been set by the administrator, but by the trac-admin script at project creation time.
This situation is quite confusing for the administrator: with the current implementation, he/she should first remove unwanted permissions for a module he/she does not want to use. If it fails to do so, he/she gets the infamous error message:
Command failed: <action> is not a valid action.
Notes
- if repository_dir is not set in trac.ini, versioncontrol actions are automatically disabled, and the administrator cannot remove the following permissions: BROWSER_VIEW, CHANGESET_VIEW, FILE_VIEW, LOG_VIEW
- I think #2307 is the expression of this general issue, specialized for TracReports.


