Modify

Opened 4 years ago

Closed 2 months ago

Last modified 2 months ago

#8494 closed enhancement (wontfix)

[PATCH] Option of users for which menu entry is displayed

Reported by: mitar Owned by: rjollos
Priority: normal Component: NavAddPlugin
Severity: normal Keywords:
Cc: mmitar@… 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)

forusers.patch (1.7 KB) - added by mitar 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by mitar

comment:1 Changed 4 years ago by mitar

  • Type changed from defect to enhancement

comment:2 Changed 4 years ago by mitar

It is also available in my fork.

comment:3 Changed 16 months ago by rjollos

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:4 Changed 16 months ago by mitar

Ups, the above link to my fork does not work. Here it is.

comment:5 Changed 13 months ago by rjollos

  • Owner changed from otaku42 to rjollos
  • Status changed from new to assigned

comment:6 Changed 2 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from assigned to 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.

comment:7 Changed 2 months ago by rjollos

#1273 is related in some ways.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.