auth-lh 0.22.0 → 0.23.0

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
  SHA1:
3
- metadata.gz: 818c8f6b0dd637d234df8cae90eef1af92592b3c
4
- data.tar.gz: d63fd638426ee6a5ca3023128789c9b7b93e2503
3
+ metadata.gz: 7a8ead1573ef87283a6ed51b5c417e8390736c7b
4
+ data.tar.gz: eef0e5a6a57e5f7bca3fd2a1590c535d93048e11
5
5
  SHA512:
6
- metadata.gz: 9aebc07f69b8380ddcc6088a4672e5ee93238c069526373d375dd09a0502c8326c606aee08107eda94ee554072876b14002f477bb1a5731a89f54c0a0c50df16
7
- data.tar.gz: ee8dad9628da61e70240f37c26116af8d65135de93d195d78f96a3c08f5b25d48c893e6dfaaaf588f79a3d82e98a938bdc374588df7bc97a7718c510490de2e1
6
+ metadata.gz: a03ee8f42c8d43c5f364421d816fcf293ae987281cc95582df55b2c87118feffed31d376508fdb31782d45da2a0f1e6ccd8892a1ddf917c5bd9a71d12b4fef19
7
+ data.tar.gz: 3cd6777d29ecb2080c6de1c3b7aeb41e3da14ab06f2a394fc6f6a39b5f5f1f39fa68f5d7f076519c7c642a31c098a1bd2e7ed54ce1d446d85828c6fa951ecaec
data/CHANGELOG.md CHANGED
@@ -186,7 +186,7 @@
186
186
 
187
187
  * Removed no longer used has_attendance_control attribute.
188
188
 
189
- ## v0.15
189
+ ## v0.15.0
190
190
 
191
191
  * Fixed escaping on user methods.
192
192
 
@@ -218,7 +218,7 @@
218
218
 
219
219
  * Refactor on attributes for user and user extended.
220
220
 
221
- ## v0.21
221
+ ## v0.21.0
222
222
 
223
223
  * Refactor on attributes for users and roles.
224
224
 
@@ -226,6 +226,10 @@
226
226
 
227
227
  * Removed no longer used attribute from users.
228
228
 
229
- ## v0.22
229
+ ## v0.22.0
230
230
 
231
231
  * Added local app shops to user
232
+
233
+ ## v0.23.0
234
+
235
+ * Added method to user management module
@@ -1,5 +1,5 @@
1
1
  module Auth
2
2
  module Lh
3
- VERSION = "0.22.0"
3
+ VERSION = "0.23.0"
4
4
  end
5
5
  end
@@ -16,6 +16,10 @@ module AuthLh
16
16
  @auth_user = val
17
17
  end
18
18
 
19
+ def allowed_local_shop_codes(current_shop_code)
20
+ (@auth_user.local_app_shop_codes + current_shop_code).uniq
21
+ end
22
+
19
23
  module ClassMethods
20
24
  def all_external
21
25
  @cached_users ||= AuthLh::Api.get_users({ pagination: 'false' })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-lh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick