Edgewall Software

Ticket #3466 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 22 months ago

Restrict users from seeing tickets that are not their own

Reported by: tdussa@… Owned by: jonas
Priority: normal Milestone:
Component: ticket system Version: 0.9.6
Severity: normal Keywords:
Cc: shishz@…

Description

We'd like to prohibit users from seeing tickets that they did not report. (Obviously, some users with proper permissions would need to be exempt from this rule.)

I believe that this can be done if users come through the reporting facility by disallowing users to create their own custom queries and offering only queries which contain SQL statements to the desired effect.

However, as far as I see, this will not prevent users from looking up tickets directly with the proper URL.

Would there be an easy way to implement such a privilege?

Attachments

Change History

Changed 2 years ago by cboos

  • milestone set to 0.11

The WorkFlow and PermissionPolicy sandboxes provide capabilities which would make this possible. However, this comes up so frequently that I think we should consider having a simple configuration setting part of the core ticket module, for implementing this behavior.

Changed 2 years ago by anonymous

  • cc shishz@… added

Changed 2 years ago by Noah Kantrowitz (coderanger) <coderanger@…>

  • status changed from new to closed
  • resolution set to worksforme

This is implemented in the PrivateTickets plugin.

Changed 2 years ago by cboos

  • status changed from closed to reopened
  • resolution worksforme deleted

Well, like I said in comment:1, I also would like to have this capability in Trac core, using a:

[tickets]
private_tickets = true

setting or something similar (with no additional permissions setup required). Only the developers (those with TICKET_ADMIN privilege) would be able to see all tickets, regardless of who's the reporter.

This will be useful for Trac setups in commercial environments and I think this should come out-of-the-box with minimal setup required.

Changed 2 years ago by cboos

See related #2393, where it's the same problematic but for the 'TICKET_APPEND' privilege.

Changed 22 months ago by cboos

  • status changed from reopened to closed
  • resolution set to duplicate
  • milestone 0.11 deleted

This is actually a duplicate of #1316.

Add/Change #3466 (Restrict users from seeing tickets that are not their own)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.