cats_core 1.1.19 → 1.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cats/core/users_controller.rb +2 -1
- data/config/routes.rb +5 -1
- data/lib/cats/core/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: a82354115851db50157d1387858c1b10b65c84fcbf4b78b80f7cbc51e308b6c1
|
4
|
+
data.tar.gz: 9810991a8731b4850e3950f1ba0245c49101b65adbb7f5ffc7ec8e7db6fb7cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75344722c714a1ab8d5b2c82ba808977f88aa141fe83e03520e92d4ccde316819932110693ac78d0523ce78e2f69417e9cb44e54b12045fc4f66870b6ccfa281
|
7
|
+
data.tar.gz: 855c87c77fa0c3517e72dc87930c959f86204ef52c46a800d53d67e2adcdd0bdd9a62251355a334707f9e0bd9f26910cde0fe895a75e69d0d7bd910fc345c77a
|
@@ -6,7 +6,8 @@ module Cats
|
|
6
6
|
before_action :set_user, only: %i[roles assign_role stores warehouse hub]
|
7
7
|
|
8
8
|
def index
|
9
|
-
users = Cats::Core::User.
|
9
|
+
users = Cats::Core::User.joins(:application_module)
|
10
|
+
.where(cats_core_application_modules: { prefix: params[:prefix] })
|
10
11
|
render json: { success: true, data: serialize(users) }
|
11
12
|
end
|
12
13
|
|
data/config/routes.rb
CHANGED
@@ -5,7 +5,11 @@ Cats::Core::Engine.routes.draw do
|
|
5
5
|
get '/notifications/unread', controller: :notifications, action: :unread
|
6
6
|
get '/notifications/read', controller: :notifications, action: :read
|
7
7
|
|
8
|
-
|
8
|
+
resources :application_modules, param: :prefix do
|
9
|
+
member do
|
10
|
+
get 'users', controller: :users, action: :index
|
11
|
+
end
|
12
|
+
end
|
9
13
|
|
10
14
|
resources :menus, only: [:index]
|
11
15
|
resources :notifications, only: [:index] do
|
data/lib/cats/core/version.rb
CHANGED