Under class `Globals` in model/ticket.py , I can add another property: ` @property def not_closed_deleted_query(self): return self.not_closed_query+' && deleted:False' ` & In tracker_main.py , in class RootController , method index(), I replace `c.app.globals.not_closed_query` with `c.app.globals.not_closed_deleted_query` as the query for paged_query_or_search
--- ** [tickets:#8059] Ticket search's dropdown filter choices should not show options from deleted tickets** **Status:** open **Milestone:** unreleased **Created:** Mon Feb 22, 2016 11:16 PM UTC by Dave Brondsema **Last Updated:** Mon Feb 22, 2016 11:16 PM UTC **Owner:** nobody Example, you are regular user, not an admin. On a ticket listing page you can click on the "Creator" column header and see all Creators listed as choices, even those of tickets that have been marked as deleted and are not visible to you. In `paged_search` I think we need to have something like the `show_deleted` logic added in to the `q` query as well. Regular users that aren't going to have access to private or deleted tickets should have those omitted in the initial search. (Maybe just for deleted tickets and not private tickets, since private tickets will have certain users (submitter) that does have access to it) --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.