workarea-storefront 3.5.17 → 3.5.18

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: 64a074d921f25dbc672405c7d30bc81c07f931348a1aad856f01a7e666872b8d
4
- data.tar.gz: a1e60284eda37d8ca103056d4df1b0ce304d0b318d6dea254d4938b8aeef9898
3
+ metadata.gz: 73d0f3cc67a6f0fe570a8a9c8bc5cef2474426b3094bf04359e4fa20beaf414e
4
+ data.tar.gz: 251a2919ee9a1f423076c962988f2b2781c8affd0758aab01ea9edc4dc1a2c97
5
5
  SHA512:
6
- metadata.gz: 6a6a527392e576fa45a89d02ecaf3ef0aff8b20245b27c4c5728f1c6c6c9e6d23dfe9a126aa179f278d4b997567052eef6c9e36288f4aa075d4ea26f1eb1941e
7
- data.tar.gz: 4b7e348fd868c930a55410aca15c0432a4f5a9c34bc1ffe3d110e94212e5b81b788f0ae8eb376d9eef9c9d114f58e7d001cc0693819a5af129e86e1f32566640
6
+ metadata.gz: cc3b2d238021e016a3e1b4886b821823d5fc3e6c7731bb4a40fbe4ad9470935849f2f295f51974d07c6687e465ac7ed2cd7b847f0fb08d7a6019ed94e23bfdb7
7
+ data.tar.gz: eb4e7ff34f196d2bebf42a280c3405f67805536a45615e76f81ea19e0c251dd152b5a7852410c8377d91a9f079683bf8f4bdae7d07915e973c0f0113277ff7c6
@@ -70,9 +70,11 @@ WORKAREA.registerModule('adminToolbar', (function () {
70
70
  },
71
71
 
72
72
  shouldDisplay = function (user) {
73
+ var disable = WORKAREA.url.parse(window.location).queryKey.disable_admin_toolbar;
74
+
73
75
  return user.impersonating
74
76
  || user.browsing_as_guest
75
- || (user.admin && user.logged_in);
77
+ || (user.admin && user.logged_in && disable !== 'true');
76
78
  },
77
79
 
78
80
  create = function (user) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-storefront
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.17
4
+ version: 3.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.17
19
+ version: 3.5.18
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.5.17
26
+ version: 3.5.18
27
27
  description: Provides user-facing ecommerce storefront functionality for the Workarea
28
28
  Commerce Platform.
29
29
  email: