Modify

Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#13298 closed enhancement (fixed)

Use IPermissionPolicy to filter reports

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: PrivateReportsPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos Trac Release:

Description

The plugin can be simplified and made compatible with Trac 1.5.1+, which drops Genshi support.

Attachments (0)

Change History (3)

comment:1 Changed 14 months ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

In 16862:

TracPrivateReports 1.0.0dev: Implement as a permission policy

Refs #13292, Fixes #13298.

comment:2 Changed 14 months ago by Ryan J Ollos

I've added a new permission policy: PrivateReportsPolicy.

Add PrivateReportsPolicy to permission_policies. Generally it should be the first in the list (please post your permission_policies setting if you are unsure).

Example for Trac 1.0:

permission_policies = PrivateReportsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy

Also, replace:

[components]
privatereports.privatereports.privatereports = enabled

with:

[components]
privatereports.* = enabled

The plugin name has been changed, so be sure to uninstall the old plugin before installing the new plugin:

$ pip uninstall PrivateReports
$ pip install .  # execute this from the source directory
Last edited 14 months ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 14 months ago by Ryan J Ollos

Documented in PrivateReportsPlugin@24.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.