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
|
||||
|
||||
# permission check
|
||||
ticket = Ticket.find( params[:ticket_id] )
|
||||
ticket = Ticket.lookup(id: params[:ticket_id])
|
||||
if !ticket_permission(ticket)
|
||||
render(json: 'No such ticket.', status: :unauthorized)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue