Opened 15 years ago
Last modified 10 years ago
#5611 new defect
Permission option that allows all users to view a tab
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracTabPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 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.
Attachments (0)
Change History (5)
comment:1 Changed 15 years ago by
Summary: | If perm = ALL, allow all users to view the tab → Permission option that allows all users to view a tab |
---|
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Another option is to simply specify the tab twice with two different permissions:
[tractab] names=Users Google,Admin Google,My Blog urls=http://www.google.com,http://www.google.com,http://blogs.acceleration.net/russ perms=WIKI_VIEW,TICKET_VIEW,TRAC_ADMIN
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 15 years ago by
Owner: | changed from Russ Tyndall to Ryan J Ollos |
---|
This plugin will be adopted soon, changing ownership to new owner
comment:5 Changed 10 years ago by
Owner: | Ryan J Ollos deleted |
---|
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.
(1) http://groups.google.com/group/trac-users/browse_thread/thread/6697b4a754db37f5