Opened 16 years ago
Closed 11 years ago
#7730 closed enhancement (duplicate)
Add more control to display the wiki menuitem if the fine grained permission system used
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | wiki system | Version: | 0.11.1 |
Severity: | normal | Keywords: | TracFineGrainedPermissions authzpolicy verify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I use the fine grained permission system and have it setup like this:
[groups] restrictedTicketAccess = testuser [wiki:wikimenuitem@*] @restrictedTicketAccess = WIKI_VIEW [wiki:WikiStart@*] @restrictedTicketAccess = WIKI_VIEW [wiki:RestrictedArea@*] @restrictedTicketAccess = WIKI_VIEW [wiki:*@*] @restrictedTicketAccess =
As soon as the authzpolicy.conf file contains a definition which revokes WIKI_VIEW from the whole wiki realm the menuitem disappears, although WIKI_VIEW permission is granted to the startpage. It would be fine if you could have more control when the wiki menuitem is displayed. I have attached a quick dirty patch, which resolve this issue.
Attachments (1)
Change History (10)
by , 16 years ago
Attachment: | authz_policy.py.patch added |
---|
follow-up: 2 comment:1 by , 16 years ago
Severity: | normal → trivial |
---|
this sentence i added for testing perpose..
comment:2 by , 16 years ago
Severity: | trivial → normal |
---|
Replying to anonymous:
this sentence i added for testing perpose..
Please install/use your own Trac for testing!
comment:3 by , 16 years ago
Milestone: | → 2.0 |
---|
comment:5 by , 15 years ago
Keywords: | authzpolicy added; authz removed |
---|
comment:7 by , 15 years ago
Keywords: | verify added |
---|---|
Milestone: | triaging → next-major-0.1X |
Priority: | normal → lowest |
comment:8 by , 11 years ago
Summary: | Add more control to display the wki menuitem if the fine grained permission system used → Add more control to display the wiki menuitem if the fine grained permission system used |
---|
comment:9 by , 11 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
This was fixed in #11067. I've tested your authz configuration and it seems to work fine on the latest version of 1.0-stable. Since #11067, fine-grained permission checks are performed on WikiStart
when determining whether the navigation item is visible.
A more general fix that would apply if the Wiki menu item pointed to a page other than WikiStart is described in #11078. Therefore, closing as a duplicate.
Patch to authz_policy.py