Sha256: f8d27610a3c7257155a24a758d0bc3247824c5c1bba6b3a9403016a084be7085

Contents?: true

Size: 244 Bytes

Versions: 12

Compression:

Stored size: 244 Bytes

Contents

Spree::Admin::BaseController.unauthorized_redirect = -> do
  if spree_current_user
    flash[:error] = I18n.t('spree.authorization_failure')
    redirect_to spree.root_path
  else
    store_location
    redirect_to Alchemy.login_path
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy-solidus-7.5.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-7.4.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-7.3.2 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-7.1.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-7.0.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-7.0.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.3.2 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.3.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.3.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.2.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.1.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-6.0.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb