effective_resources 2.26.0 → 2.26.1

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: 76931ae3422d0b14af4c84ed8670f0a03eba10ffb55804850d8d6aa23409d947
4
- data.tar.gz: 9a8f17357dd11e73cc82070c20825fa63e89701ec80f1de679479c6b1f1123a9
3
+ metadata.gz: 5c1d1d08ea965b86966add386e7676e3f4961289ea9bc7c2a1f05b81d5dfd6e6
4
+ data.tar.gz: 28e1fd1ec285d91b62c7b0f082de1b3a8183647b67a101240b6d7e6aa4c2a79a
5
5
  SHA512:
6
- metadata.gz: 20bc96638e82faf39e0595eee398104967dbc273e308c15768f32d55e518430698017c63a233b84a192a0be6a7ade9bb3a80c344274271a230e839d55c8b5672
7
- data.tar.gz: 7eacea35ae629bcd2b6febb4d548bf15c239d3c5422b01633dd967f780b2590c94ca8bf92ca27832a430f45d74e51e90a2150c16715e0b2e7bc4b8c00eb91d78
6
+ metadata.gz: 1f652b7ef3003bb3cf6a439f2bedc84bfd49f7391f3eb4040d3c49d7739142803d393fd08d0bf3620274639ff2b0ff7939c0e682d91e99df8afd79449ce11987
7
+ data.tar.gz: 44f0c457a5cc6692489b2f6809aed69379d28984d662fc0401b9894c940a28edc03d051e196bdfd44702ff9f460c9270c3e5f50c99358c6d056492c1ac4af677
@@ -12,6 +12,11 @@ module Effective
12
12
  collection = current_user.class.all
13
13
  collection = collection.includes(:organizations) if with_organizations
14
14
 
15
+ # Display only related organization users
16
+ if with_organizations && params[:related]
17
+ collection = collection.where(id: current_user.organizations.flat_map(&:users))
18
+ end
19
+
15
20
  respond_with_select2_ajax(collection, skip_authorize: true) do |user|
16
21
  data = { first_name: user.first_name, last_name: user.last_name, email: user.email }
17
22
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.26.0'.freeze
2
+ VERSION = '2.26.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.26.0
4
+ version: 2.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-04 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails