Sha256: e849fae5d52eb67b75623c2ff1c8d059c3913f26523314c0aa447a53166ecb1b

Contents?: true

Size: 248 Bytes

Versions: 8

Compression:

Stored size: 248 Bytes

Contents

Spree::Admin::BaseController.unauthorized_redirect = -> do
  if try_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

8 entries across 8 versions & 1 rubygems

Version Path
alchemy-solidus-3.0.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-3.0.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.5.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.5.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.4.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.3.2 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.3.1 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb
alchemy-solidus-2.3.0 lib/alchemy/solidus/spree_admin_unauthorized_redirect.rb