Opened 7 years ago

# Multiple & Exclude Permissions

Reported by: Owned by: cyrano423@… otaku42 normal NavAddPlugin normal rjollos 0.10

### Description

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>

to

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


### Changed 6 years ago by egagnon@…

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

### comment:1 Changed 6 years ago by egagnon@…

I have attached a patch which allows to exclude users. I use this patch on http://sablecc.org 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:

[navadd]
fakenewticket.target = mainnav
fakenewticket.title = New Ticket
fakenewticket.url = /wiki/CreateAccount
fakenewticket.notperm = WIKI_MODIFY


### Modify Ticket

Change Properties