solidus_auth_devise 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e0d47cfd1b48b91343c2ba368dc685cf3e8c571a79d7d38c5b49538cf00d16b
4
- data.tar.gz: ad94efe038f6e2fcc044e7e7943b9b62dc2bd43cb36eb3721d2a81708e596c52
3
+ metadata.gz: 9e8cfc291089f4c363344802fb5f59206bf39c6b5cd4d8f71727f455d8499273
4
+ data.tar.gz: c54bdfbfca7e880bc0145c047d508911d86cda5253b069c0207f1aa98c6a9625
5
5
  SHA512:
6
- metadata.gz: 3e425503e6ee10e0068856686a84fc60ec0ef38280d24e4882364801ff09c7e280604574ab1d3f4417e0ac06c09ae47ff519a4f64ffe8a56fcce806e285abf73
7
- data.tar.gz: 4124d2869c44f9dd66f9422d4dd31b1d0e68ae663e4f46ebecfc510e106209966d273d66c8d4978d0a2d949a040bffe5d0a1306cb745b079301f7d914130922a
6
+ metadata.gz: 44e477eeb54bdbccb3c1c71a131483d76d18f718395fb2bdc6c1f71f8dcae35b7ed9b33f83d8c5aa4503f061f1ef73a2db875b56ffbdd3167469d78c3d230bca
7
+ data.tar.gz: 236e7f404de7a6b8074bc8d80ecaa87088bcfd8bcee26545daff82841a0d72370e726303fe23b43b673965cc95d416891a3df0a4f824698b9edbb88fd15c1635
@@ -25,7 +25,7 @@ class Spree::Admin::UserPasswordsController < Devise::PasswordsController
25
25
  set_flash_message(:notice, :send_instructions) if is_navigational_format?
26
26
 
27
27
  if successfully_sent?(resource)
28
- location = (spree_current_user && resource.persisted?) ? admin_user_path(resource) : admin_login_path
28
+ location = (resource.persisted? && can?(:admin, Spree.user_class)) ? admin_user_path(resource) : admin_login_path
29
29
  respond_with resource, location: location
30
30
  else
31
31
  respond_with_navigational(resource) { render :new }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusAuthDevise
4
- VERSION = "2.6.1"
4
+ VERSION = "2.6.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_auth_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team