eco-helpers 1.3.17 → 1.3.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: e957c3c78a92c3cb18bed8c512ed087dd21551799a3dfa54e9cd3821045826ee
4
- data.tar.gz: 853c05d5dd2191611b74b7e0b64037d2ad223721a8bff9e615560d13a057c2cc
3
+ metadata.gz: a61c411db84db417e4d9004d2e8f9359b423cb91ac31b40eaf390e9b3e7a4f0a
4
+ data.tar.gz: 3431111bd4259b33a8c6ac38ad5ce67226c4e2a8c9c95b311142d7896f9d68f1
5
5
  SHA512:
6
- metadata.gz: c5f83c3d8bef201c208c18116544d125633e3633abc33c519d841b766bb49777c562676591b3fe5e5037d805f43ece0233ab0af0ae8236a64a0823a55e88c9fd
7
- data.tar.gz: 0cc7d6d8d7e3fb6e58a04e55e0f6dcfe84916c41b2d067828698e92255eb7004503be731ff46ba8d6d30ba6e9dcd1d9b6faf3df2ac6c80cf5ccf6fb48abb23f6
6
+ metadata.gz: afae206900769f68a8733dbe72d3277cf610fd4d7e92a1adda5197685889511fb80c9a424987f59306c59fa251b79a6f929d0dfc566c301cd3703c5fc6c5a2bf
7
+ data.tar.gz: 19d0d4c7c3a24c194b02faee98bd2ad2c55d8a8d7522681f2d1918594207cf673b827e4a510646c1f21b302105290b7b31da41be98a80112ff6d8c0c6e398826
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [1.3.17] - 2020-07-xx
4
+ ## [1.3.18] - 2020-07-xx
5
+
6
+ ### Added
7
+ ### Changed
8
+ ### Fixed
9
+ - the `update` case was missing the code to use the `default_usergroup`
10
+
11
+
12
+ ## [1.3.17] - 2020-07-06
5
13
 
6
14
  ### Added
7
15
  ### Changed
@@ -12,6 +12,10 @@ module Eco
12
12
  strict_search = session.config.people.strict_search? && (!options[:search]&.key?(:strict) || options.dig(:search, :strict))
13
13
  pgs = session.policy_groups
14
14
 
15
+ if session.config.people.default_usergroup?
16
+ def_id = pgs.to_id(session.config.people.default_usergroup)
17
+ end
18
+
15
19
  entries.each.with_index do |entry, i|
16
20
  if person = people.find(entry, strict: strict_search)
17
21
 
@@ -37,6 +41,7 @@ module Eco
37
41
  entry.set_details(person) unless options.dig(:exclude, :details)
38
42
 
39
43
  unless options.dig(:exclude, :account)
44
+ add_account = !person.account
40
45
  ini_pg_ids = person.account&.policy_group_ids || []
41
46
 
42
47
  account_excluded = []
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.3.17"
2
+ VERSION = "1.3.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.17
4
+ version: 1.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura