#8494 closed enhancement (wontfix)
[PATCH] Option of users for which menu entry is displayed
Reported by: | Mitar | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | NavAddPlugin |
Severity: | normal | Keywords: | |
Cc: | Mitar | Trac Release: | 0.11 |
Description
I have made a patch which ads an options forusers
which then displays given menu entry only for listed users. It is useful for example when you want a menu entry to be listed only for anonymous users.
I have also fixed mix of tabs and spaces in the code.
Attachments (1)
Change History (8)
Changed 14 years ago by
Attachment: | forusers.patch added |
---|
comment:1 Changed 14 years ago by
Type: | defect → enhancement |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 11 years ago by
Another way we could accomplish this would be to allow negating the permission in <item>.perm = <permission>
. Then, a permission could be chosen which only authenticated users possess, for example WIKI_MODIFY
, and the configuration would be <item>.perm = !WIKI_MODIFY
.
comment:5 Changed 11 years ago by
Owner: | changed from Michael Renzmann to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:6 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Another approach would be to use the trac:ExtraPermissionsProvider to create a permission that is only possessed by members of the group that should see the navigation item. The functionality of the plugin will soon be integrated into Trac, and that will likely be the recommended approach.
It is also available in my fork.