Trying to fix DoubleRenderError
This commit is contained in:
parent
4b57267386
commit
b7500617e3
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class Api::V1::GridWeaponsController < Api::V1::ApiController
|
|||
|
||||
if !current_user || party.user != current_user
|
||||
render_unauthorized_response
|
||||
return
|
||||
end
|
||||
|
||||
if grid_weapon = GridWeapon.where(
|
||||
|
|
@ -29,6 +30,7 @@ class Api::V1::GridWeaponsController < Api::V1::ApiController
|
|||
def update
|
||||
if !current_user || @weapon.party.user != current_user
|
||||
render_unauthorized_response
|
||||
return
|
||||
end
|
||||
|
||||
# TODO: Server-side validation of weapon mods
|
||||
|
|
|
|||
Loading…
Reference in a new issue