Edgewall Software
Modify

Opened 15 years ago

Closed 10 years ago

#7730 closed enhancement (duplicate)

Add more control to display the wiki menuitem if the fine grained permission system used

Reported by: andre.sudhoff@… 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)

authz_policy.py.patch (666 bytes ) - added by andre.sudhoff@… 15 years ago.
Patch to authz_policy.py

Download all attachments as: .zip

Change History (10)

by andre.sudhoff@…, 15 years ago

Attachment: authz_policy.py.patch added

Patch to authz_policy.py

comment:1 by anonymous, 15 years ago

Severity: normaltrivial

this sentence i added for testing perpose..

in reply to:  1 comment:2 by osimons, 15 years ago

Severity: trivialnormal

Replying to anonymous:

this sentence i added for testing perpose..

Please install/use your own Trac for testing!

comment:3 by Remy Blank, 15 years ago

Milestone: 2.0

comment:4 by Christian Boos, 15 years ago

This one is probably closely related to #6211.

comment:5 by Christian Boos, 15 years ago

Keywords: authzpolicy added; authz removed

comment:6 by Christian Boos, 14 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:7 by Christian Boos, 14 years ago

Keywords: verify added
Milestone: triagingnext-major-0.1X
Priority: normallowest

comment:8 by Ryan J Ollos, 10 years ago

Summary: Add more control to display the wki menuitem if the fine grained permission system usedAdd more control to display the wiki menuitem if the fine grained permission system used

comment:9 by Ryan J Ollos, 10 years ago

Milestone: next-major-releases
Resolution: duplicate
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.