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 +4 -4
- data/CHANGELOG.md +7 -3
- data/lib/auth/lh/version.rb +1 -1
- data/lib/auth_lh/user_management.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8ead1573ef87283a6ed51b5c417e8390736c7b
|
4
|
+
data.tar.gz: eef0e5a6a57e5f7bca3fd2a1590c535d93048e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/auth/lh/version.rb
CHANGED
@@ -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' })
|