Modify

Opened 10 years ago

Closed 9 years ago

#12307 closed defect (fixed)

Ticketstats is not showing when reporting module is disabled

Reported by: Jorrit Schippers Owned by: Ryan J Ollos
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

In my trac.ini I have trac.ticket.report.* = disabled because I like the query module better (see trac:wiki:TracReports). This module provides the REPORT_VIEW permission.

With the REPORT_VIEW permission gone, there is no way to get ticket stats working since [13100]. I propose that ticketstats implements IPermissionRequestor and adds REPORT_VIEW too. My test suggests that there is no error when two modules add the same permission.

Attachments (1)

ticketstats-12307.patch (1.2 KB) - added by Jorrit Schippers 10 years ago.
quickfix

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Jorrit Schippers

Attachment: ticketstats-12307.patch added

quickfix

comment:1 Changed 10 years ago by Ryan J Ollos

What if we test for REPORT_VIEW or TICKET_VIEW?

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:2 Changed 10 years ago by Jorrit Schippers

That seems like a proper solution too. I see that the required permission is not mentioned on the TracTicketStatsPlugin page. After you commit the change, maybe it is wise to put something up there so people know which permissions the plugin uses.

comment:3 Changed 10 years ago by Ryan J Ollos

Status: newaccepted

comment:4 in reply to:  2 Changed 10 years ago by Ryan J Ollos

Replying to jorrit:

After you commit the change, maybe it is wise to put something up there so people know which permissions the plugin uses.

The wiki is editable by anyone and I review all the changes through the RSS feed. I appreciate if you can make the documentation change since I have trouble even keeping up with the tickets.

comment:5 Changed 10 years ago by Jorrit Schippers

I did not realize that, I will do that when the change is committed.

comment:6 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 14703:

3.0.0dev: Require TICKET_VIEW rather than REPORT_VIEW. Fixes #12307.

This revises [13100] and uses the same permission as QueryModule.

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.