Opened 8 years ago

Permission option that allows all users to view a tab

Reported by: Owned by: Ryan J Ollos normal TracTabPlugin normal 0.11

Description

I have a fairly complicated permissions and group scheme where some users are only allowed to view the WIKI module, and other users are only allowed to view the TICKETS module. There is no overlap in the permissions that these groups possess. My request is to modify the following behavior, as described on the main page for the TracTabPlugin:

Note: The perms parameter is optional, but if left unspecified, it requires TRAC_ADMIN permissions to view the tabs.

I would like to create TracTabs that are accessible by all users. However there is not currently a single permission in Trac that I can grant to all of my users. I would therefore like to specify a parameter such as perm = ALL, and allow all users to access the TracTab. Another good syntax would be perm = *. Alternatively, the behavior could be changed such that all users can view the tab when perm is not specified.

Another way to accomplish this may be to define a custom permission that all users would have under my Trac installation. A permission such as AUTHENTICATED, granted to all users that are logged into the site, may be sufficient. However this would probably be better implemented as a modification to Trac rather than this plug-in.

comment:1 Changed 8 years ago by Ryan J Ollos

Summary: If perm = ALL, allow all users to view the tab → Permission option that allows all users to view a tab

comment:2 Changed 8 years ago by Ryan J Ollos

I'm looking at implementing a custom permission, TRAC_VIEW, to accomplish this (1). Even if that can be done, I still think the behavior of the TracTabPlugin should be modified to be more like that of the NavAddPlugin, as described previously.

comment:3 Changed 8 years ago by Russ Tyndall

Another option is to simply specify the tab twice with two different permissions:

[tractab]


I recognize that this is sortof jumping through hoops, however I dont really use this plugin (and have not actively contributed to it since 11/15/06 20:35:37). That said I am happy to apply patches and commit them if you wish to provide a working patch.

Sorry I cant be of more help,

Russ

comment:4 Changed 8 years ago by Russ Tyndall

Owner: changed from Russ Tyndall to Ryan J Ollos

This plugin will be adopted soon, changing ownership to new owner

comment:5 Changed 3 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties