From bad40642883324541d707c68b60a5c7e34d3ff2b Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 4 Apr 2024 15:10:40 +0200 Subject: [PATCH] Make sure current_user is set earlier in asset syncs controller [SCI-10592] --- app/controllers/asset_sync_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asset_sync_controller.rb b/app/controllers/asset_sync_controller.rb index 855bfba53..8823fa845 100644 --- a/app/controllers/asset_sync_controller.rb +++ b/app/controllers/asset_sync_controller.rb @@ -5,7 +5,7 @@ class AssetSyncController < ApplicationController skip_before_action :authenticate_user!, only: %i(update download) skip_before_action :verify_authenticity_token, only: %i(update download) - before_action :authenticate_asset_sync_token!, only: %i(update download) + prepend_before_action :authenticate_asset_sync_token!, only: %i(update download) before_action :check_asset_sync def show