Fix a small variable bug in GridWeapons Controller
This commit is contained in:
parent
309961e5b0
commit
62543858bd
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class Api::V1::GridWeaponsController < Api::V1::ApiController
|
||||||
|
|
||||||
def update
|
def update
|
||||||
if current_user
|
if current_user
|
||||||
if party.user != current_user
|
if @weapon.party.user != current_user
|
||||||
render_unauthorized_response
|
render_unauthorized_response
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue