Reset edit key when party is remixed
This will allow other people to actually edit the team they remix if it was authored by anonymous
This commit is contained in:
parent
4ded81c704
commit
ca2e1d63f1
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ module Api
|
||||||
}
|
}
|
||||||
|
|
||||||
new_party.local_id = party_params[:local_id] if !party_params.nil?
|
new_party.local_id = party_params[:local_id] if !party_params.nil?
|
||||||
|
new_party.edit_key = nil
|
||||||
|
|
||||||
if new_party.save
|
if new_party.save
|
||||||
render json: PartyBlueprint.render(new_party, view: :created, root: :party,
|
render json: PartyBlueprint.render(new_party, view: :created, root: :party,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue