Package: trac-sensitivetickets
Version: 0.21-1

When an anonymous user selects the option to see: Activity on sensitive
tickets I expect them to get a list of rows saying "Redacted".

Instead, they get an error:

Event provider SensitiveTicketsPolicy failed for filters "Activity on
sensitive tickets": AttributeError: 'Environment' object has no
attribute 'get_db_cnx'

The fix seems to be:

--- sensitivetickets.py.orig    2019-05-07 12:23:55.990149044 -0400
+++ sensitivetickets.py 2019-05-07 12:24:36.477117871 -0400
@@ -176,7 +176,7 @@
             ts_start = to_utimestamp(start)
             ts_stop = to_utimestamp(stop)

-            db = self.env.get_db_cnx()
+            db = self.env.get_read_db()
             cursor = db.cursor()

             if 'ticket_details' in filters:


Thank you!

jamie



-- 
May First/People Link
Growing networks to build a just world
https://mayfirst.org
https://support.mayfirst.org

OpenPGP Key: http://current.workingdirectory.net/pages/identity/
xmpp: ja...@mayfirst.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to