Opened 18 years ago
Closed 18 years ago
#7169 closed defect (fixed)
[patch] Additional fine-grained permission checks in trac.ticket.web_ui
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 | 
| Component: | ticket system | Version: | devel | 
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
There are a few places in trac.ticket.web_ui in which the ticket resource is not passed to req.perm.  This sometimes leads to a problem in my custom permission policy when a user has, for example, TICKET_CHGPROP for a specific ticket, but not for all tickets.
Hopefully this patch doesn't cause any problems.
Attachments (1)
Change History (7)
by , 18 years ago
| Attachment: | ticket_permissions-r6904.patch added | 
|---|
comment:1 by , 18 years ago
| Milestone: | → 0.11 | 
|---|---|
| Resolution: | → fixed | 
| Status: | new → closed | 
Thanks for the patch, applied in [6905].
comment:2 by , 18 years ago
| Resolution: | fixed | 
|---|---|
| Status: | closed → reopened | 
comment:3 by , 18 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | reopened → closed | 
Is there a reason you're reopening this ticket? If so, give it. Otherwise, this is fixed.
comment:4 by , 18 years ago
| Resolution: | fixed | 
|---|---|
| Status: | closed → reopened | 
Actually, I'm going to reopen this ticket now, because there's one other problem that's somewhat related, but small enough that I don't think it warrants a separate ticket.
This actually caused an exception to be raised prior to r6905:  On lines 838 and 847 of trac.ticket.web_ui are the line ticket.values = ticket._old.  But this leads to problems down the line since ticket._old only contains values for the fields that were changed.  To revert the values, it should be ticket.values.update(ticket._old).
comment:6 by , 18 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | reopened → closed | 
Applied suggested change in [6907].



  
Adds fine-grained permission checks in a few additional places.