Fix missing access in ticket_unassign

This commit is contained in:
Ivan Habunek 2018-12-03 16:29:44 +01:00 committed by Drew DeVault
parent c8bf4a70ee
commit d0654f78e5
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ def ticket_unassign(owner, name, ticket_id):
ticket = _assignment_get_ticket(owner, name, ticket_id)
user = _assignment_get_user(valid)
if not valid.ok:
_, access = get_ticket(ticket.tracker, ticket_id)
ctx = get_ticket_context(ticket, ticket.tracker, access)
return render_template("ticket.html", valid, **ctx)