wiki:PrivateReportsPlugin

Add permissions to restrict access to individual reports

Notice: An alternate implementation using TracFineGrainedPermissions is discussed in #11049 and effectively does the same thing as this plugin. TracFineGrainedPermissions only work for the report realm in Trac 1.0.2 and later. If you are running Trac 1.0.2 or later, you may want to consider using TracFineGrainedPermissions rather than this plugin.

Description

This plugin can be used to restrict users to see only specific reports. The plugin lets you choose permissions for each report. The users have to have at least one of the permissions to be able to see it on the 'Available Reports' page and to access it directly.

How to choose the permissions or groups needed to view a report:

The first report is not visible:

If a user tries to access the report via changes in the url, then (s)he will get the following message:

Bugs/Feature Requests

Existing bugs and feature requests for PrivateReportsPlugin are here.

If you have any issues, create a new ticket.

defect

6 / 6

enhancement

4 / 5

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out PrivateReportsPlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

The component rule for activating the plugin is:

[components]
privatereports.* = enabled

This is only needed if activating the plugin by editing trac.ini rather than from the Plugins administration page.

Add PrivateReportsPolicy to the list of permission_policies. Generally it should be the first entry in the list.

[trac]
permission_policies = PrivateReportsPolicy,
    DefaultPermissionPolicy, LegacyAttachmentPolicy

Recent Changes

16878 by rjollos on 2017-10-15 04:34:44
TracPrivateReports 1.2.0dev: Make compatible with Trac 1.2+

Fixes #13293.

16877 by rjollos on 2017-10-15 02:19:01
TracPrivateReports 1.0.0: Tag release 1.0.0

Refs #13292.

16862 by rjollos on 2017-10-11 18:04:20
TracPrivateReports 1.0.0dev: Implement as a permission policy

Refs #13292, Fixes #13298.

(more)

Author/Contributors

Author: mhenke
Maintainer: Michael Henke
Contributors: rjollos

Last modified 5 weeks ago Last modified on Oct 11, 2017, 6:19:22 PM

Attachments (3)

Download all attachments as: .zip