From ca2e1d63f1d1cb70e7cb6dfcd7fa9478df98b6c5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 2 Jul 2023 01:05:14 -0700 Subject: [PATCH] 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 --- app/controllers/api/v1/parties_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index d4c79c4..37f06a2 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -61,6 +61,7 @@ module Api } new_party.local_id = party_params[:local_id] if !party_params.nil? + new_party.edit_key = nil if new_party.save render json: PartyBlueprint.render(new_party, view: :created, root: :party,