solidus_backend 3.1.6 → 3.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8903b91d3f4fae6507dfe625e8f9b24874d0dca1112326f34a59d2248ebdc710
|
4
|
+
data.tar.gz: 41efa75c338489bf545c78dbe068a790a2ff65921e3eeaea269f6a35c4c32a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6392976b28c3318b3e6cac80eed33e2cbcc9ac6e9b502aab43d0214bb6926fe9e2b683b56234aee11f47045f8dbcf192283c5e2eeed4d2eed28790605af43577
|
7
|
+
data.tar.gz: d91c2ec5947013f55f8fa6b5abed42fc7ae9f11bb86cce6f424f63ee4c775da71253bd2d9b2b96269de3ff47448aa82864407e349b8a27bae02659fc3a41f2e0
|
@@ -92,7 +92,7 @@ module Spree
|
|
92
92
|
|
93
93
|
@search = super.ransack(params[:q])
|
94
94
|
@collection = @search.result.includes(:spree_roles)
|
95
|
-
@collection = @collection.includes(:
|
95
|
+
@collection = @collection.includes(:orders)
|
96
96
|
@collection = @collection.page(params[:page]).per(Spree::Config[:admin_products_per_page])
|
97
97
|
end
|
98
98
|
|
@@ -121,7 +121,7 @@ module Spree
|
|
121
121
|
# handling raise from Spree::Admin::ResourceController#destroy
|
122
122
|
def user_destroy_with_orders_error
|
123
123
|
invoke_callbacks(:destroy, :fails)
|
124
|
-
render status: :forbidden,
|
124
|
+
render status: :forbidden, plain: t("spree.error_user_destroy_with_orders")
|
125
125
|
end
|
126
126
|
|
127
127
|
def sign_in_if_change_own_password
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<% if can?(:edit, user) %>
|
90
90
|
<%= link_to_edit user, no_text: true %>
|
91
91
|
<% end %>
|
92
|
-
<% if can?(:destroy, user) && user.orders.
|
92
|
+
<% if can?(:destroy, user) && user.orders.none? %>
|
93
93
|
<%= link_to_delete user, no_text: true %>
|
94
94
|
<% end %>
|
95
95
|
</td>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.1.
|
26
|
+
version: 3.1.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.1.
|
33
|
+
version: 3.1.7
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.1.
|
40
|
+
version: 3.1.7
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: coffee-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -920,7 +920,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
920
920
|
- !ruby/object:Gem::Version
|
921
921
|
version: 1.8.23
|
922
922
|
requirements: []
|
923
|
-
rubygems_version: 3.2
|
923
|
+
rubygems_version: 3.1.2
|
924
924
|
signing_key:
|
925
925
|
specification_version: 4
|
926
926
|
summary: Admin interface for the Solidus e-commerce framework.
|