Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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 7 years 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 7 years 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 7 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 7 years 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. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.