mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Properly set warden session in asset syncs controller [SCI-10637]
This commit is contained in:
parent
9a48d635b7
commit
83477a461a
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ class AssetSyncController < ApplicationController
|
|||
render_error(:unauthorized) and return unless @asset_sync_token&.token_valid?
|
||||
|
||||
@asset = @asset_sync_token.asset
|
||||
@current_user = @asset_sync_token.user
|
||||
|
||||
sign_in(@asset_sync_token.user)
|
||||
|
||||
render_error(:forbidden, @asset.file.filename) and return unless can_manage_asset?(@asset)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue