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 ] disallow_account_scope only: %i[ new create ]
allow_unauthorized_access only: :show allow_unauthorized_access only: :show
before_action :set_import, only: %i[ show ] before_action :set_import, only: %i[ show ]
before_action :ensure_accessed_by_owner, only: %i[ show ]
def new def new
end end
@@ -26,6 +27,10 @@ class Account::ImportsController < ApplicationController
@import = Current.account.imports.find(params[:id]) @import = Current.account.imports.find(params[:id])
end end
def ensure_accessed_by_owner
head :forbidden unless @import.identity == Current.identity
end
def start_import(account) def start_import(account)
import = nil import = nil
-2
View File
@@ -3,8 +3,6 @@
<div class="panel panel--centered flex flex-column gap"> <div class="panel panel--centered flex flex-column gap">
<header> <header>
<h1 class="txt-x-large font-weight-black txt-tight-lines margin-block-end-half">Import a Fizzy account</h1> <h1 class="txt-x-large font-weight-black txt-tight-lines margin-block-end-half">Import a Fizzy account</h1>
<div hidden>Upload the .zip file from your Fizzy export</div>
<div hidden>Upload the .zip file from a Fizzy export to create a new account.</div>
<div>Create an account using data from a Fizzy export. Upload the exported .zip file below.</div> <div>Create an account using data from a Fizzy export. Upload the exported .zip file below.</div>
</header> </header>
@@ -1,4 +1,4 @@
Unfortunately, we were couldn't import your Fizzy account. Unfortunately, we couldn't import your Fizzy account.
This may be due to corrupted export data or a conflict with existing data. This may be due to corrupted export data or a conflict with existing data.
Please try again with a fresh export, or reach out for help if the problem persists. Please try again with a fresh export, or reach out for help if the problem persists.
+1 -1
View File
@@ -67,7 +67,7 @@
"cwe_id": [ "cwe_id": [
295 295
], ],
"note": "" "note": "Required for internal PureStorage self-signed certificates. Only used for trusted internal storage URLs."
}, },
{ {
"warning_type": "Mass Assignment", "warning_type": "Mass Assignment",
-1
View File
@@ -171,7 +171,6 @@ Rails.application.routes.draw do
resource :landing resource :landing
namespace :my do namespace :my do
resource :identity, only: :show resource :identity, only: :show
resources :access_tokens resources :access_tokens