Improved code layout.
This commit is contained in:
parent
944b9bf498
commit
c49bd234fd
1 changed files with 12 additions and 12 deletions
|
@ -125,7 +125,7 @@ class TicketArticlesController < ApplicationController
|
||||||
def attachment
|
def attachment
|
||||||
|
|
||||||
# permission check
|
# permission check
|
||||||
ticket = Ticket.find( params[:ticket_id] )
|
ticket = Ticket.lookup(id: params[:ticket_id])
|
||||||
if !ticket_permission(ticket)
|
if !ticket_permission(ticket)
|
||||||
render(json: 'No such ticket.', status: :unauthorized)
|
render(json: 'No such ticket.', status: :unauthorized)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue