Opened 18 years ago
Closed 17 years ago
#3902 closed enhancement (fixed)
How could I deny operations on closed tickets
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | ticket system | Version: | 0.10 |
Severity: | normal | Keywords: | workflow permission |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I want to deny operations on closed tickets. I mean if a ticket is closed then this ticket couldn't be modified (reopened or anyting else).
How could I do this?
Thx a lot in advance.
Adriano Vieira
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Keywords: | workflow permission added |
---|
This issue should probably be examined in the light of the recent/future changes concerning workflow and security.
comment:3 by , 18 years ago
Milestone: | → 0.11 |
---|
comment:4 by , 18 years ago
comment:5 by , 17 years ago
Milestone: | 0.11.1 → 0.11 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
See TracWorkflow for workflow docs. As ecarter says, it should be quite easy to prevent reopening closed tickets with 0.11 (or require a higher permission).
The other alternative for 0.11 that also solves this for fields and all changes, is making simple, custom security policy (TracDev/SecurityBranch). On permission check to see if the user has permission to modify or append this resource (ticket), if ticket is closed then only allow if the user has TICKET_ADMIN
(or some other variation along these lines). See trunk/sample-plugins for examples.
Closing as 'fixed' in recognition of the major efforts that went into 0.11 to make the requested enhancement possible.
Customize the WorkFlow. Should be as simple as removing the available operations available on the closed state (i.e. reopen), in the
[ticket-status]
section.Note however that the old WorkFlow branch is based on a 0.10dev Trac version, and that the new WorkFlow was recently rebased on 0.11dev (and doesn't have much features right now… work in progress).
So for pure 0.10 installations, WorkFlow is not really usable. Hopefully 0.11 won't take that long ;)