eco-helpers 1.3.17 → 1.3.18
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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/eco/api/usecases/default_cases/update_case.rb +5 -0
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a61c411db84db417e4d9004d2e8f9359b423cb91ac31b40eaf390e9b3e7a4f0a
|
|
4
|
+
data.tar.gz: 3431111bd4259b33a8c6ac38ad5ce67226c4e2a8c9c95b311142d7896f9d68f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afae206900769f68a8733dbe72d3277cf610fd4d7e92a1adda5197685889511fb80c9a424987f59306c59fa251b79a6f929d0dfc566c301cd3703c5fc6c5a2bf
|
|
7
|
+
data.tar.gz: 19d0d4c7c3a24c194b02faee98bd2ad2c55d8a8d7522681f2d1918594207cf673b827e4a510646c1f21b302105290b7b31da41be98a80112ff6d8c0c6e398826
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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 = []
|
data/lib/eco/version.rb
CHANGED