Opened 11 years ago

Closed 17 months ago

Last modified 17 months ago

#1273 closed enhancement (wontfix)

Multiple & Exclude Permissions

Reported by: Prasand J. Owned by: Ryan J Ollos
Priority: normal Component: NavAddPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos Trac Release: 0.10


Great plugin! I use it extensively.

It would be nice to have the ability to assign the item to multiple users (comma delimited list). Also, the ability to exclude certain users (for example: this button should not show for TRAC_ADMIN).

<item>.perm = <permission>


<item>.include = <permission 1>,<permission 2>,<permission 2>
<item>.exclude = <permission 1>,<permission 2>

Attachments (1)

notperm.patch (673 bytes) - added by egagnon@… 11 years ago.
Patch to allow exclusion based on permission (*.notperm = PERMISSION)

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by egagnon@…

Attachment: notperm.patch added

Patch to allow exclusion based on permission (*.notperm = PERMISSION)

comment:1 Changed 11 years ago by egagnon@…

I have attached a patch which allows to exclude users. I use this patch on to provide a fake New Ticket item to anonymous users.

IMPORTANT: I have noticed that the patch causes unreliable display when an item has no *.notperm entry. So, for items which should not be excluded for any user, you should add: *.notperm = NONE in your trac.ini file.

Here is an example:

add_items = fakenewticket,download = mainnav
fakenewticket.title = New Ticket
fakenewticket.url = /wiki/CreateAccount
fakenewticket.notperm = WIKI_MODIFY = mainnav
download.title = Download
download.url = /wiki/DownloadPage
download.notperm = NONE

comment:2 Changed 9 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:3 Changed 4 years ago by Ryan J Ollos

Owner: changed from Michael Renzmann to Ryan J Ollos
Status: newassigned

comment:4 Changed 4 years ago by Ryan J Ollos

comment:3:ticket:8494 is related.

comment:5 Changed 17 months ago by Ryan J Ollos

Resolution: wontfix
Status: assignedclosed

The feature will be implemented in trac:#11078. Permissions can be defined in the trac:ExtraPermissionsProvider. Your request could be implemented with the current version of NavAddPlugin by defining a unique permission, associating it with a set of users and making the navigation item require the permission.

Last edited 17 months ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.