Finishing touches

This commit is contained in:
Stanko K.R.
2026-02-02 18:06:19 +01:00
parent b06d95a20d
commit 5dac2fa678
5 changed files with 7 additions and 5 deletions
@@ -4,6 +4,7 @@ class Account::ImportsController < ApplicationController
disallow_account_scope only: %i[ new create ]
allow_unauthorized_access only: :show
before_action :set_import, only: %i[ show ]
before_action :ensure_accessed_by_owner, only: %i[ show ]
def new
end
@@ -26,6 +27,10 @@ class Account::ImportsController < ApplicationController
@import = Current.account.imports.find(params[:id])
end
def ensure_accessed_by_owner
head :forbidden unless @import.identity == Current.identity
end
def start_import(account)
import = nil