wordjelly-auth 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/auth/endpoints_controller.rb +4 -4
- data/app/controllers/auth/shopping/bar_codes_controller.rb +2 -2
- data/app/controllers/auth/shopping/personalities_controller.rb +2 -2
- data/app/controllers/auth/shopping/places_controller.rb +2 -2
- data/app/controllers/auth/webhooks_controller.rb +1 -1
- data/app/controllers/auth/work/communications_controller.rb +3 -3
- data/app/controllers/auth/work/instructions_controller.rb +3 -3
- data/lib/auth/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: b5dd499aa8e5985f9d835a231a4fdac7d1bd4befa657bb30083f839a57aa947a
|
4
|
+
data.tar.gz: 8e4725d8fdb9c5270e17e36ce7cd341a636aed020f288bbc0f97b3c6b6ed6fb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a023aaf18fd8f2fc80966819f097491993cded042c5524ad5ee127427e3306bfae53a11c7b2512eccb09b75f8076f72874209190d194214f2d2de319ccca1f
|
7
|
+
data.tar.gz: e1ec08ceadf852d93e8c7d6d7c63e8053e50eab414a9962ea6e759059247acf2aa344921e414743a3ec7c80649541e96f125a68cc36efe33a1b393f784c58c0c
|
@@ -8,10 +8,10 @@ class Auth::EndpointsController < Auth::ApplicationController
|
|
8
8
|
|
9
9
|
CONDITIONS_FOR_TOKEN_AUTH = [:create,:update,:destroy,:edit,:new,:index]
|
10
10
|
TCONDITIONS = {:only => CONDITIONS_FOR_TOKEN_AUTH}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
before_action :do_before_request , TCONDITIONS
|
12
|
+
before_action :instantiate_classes
|
13
|
+
before_action :build_model_from_params
|
14
|
+
before_action(:only => [:create]){|c| check_for_create(@model)}
|
15
15
|
|
16
16
|
def create
|
17
17
|
|
@@ -8,8 +8,8 @@ class Auth::Shopping::BarCodesController < Auth::Shopping::ShoppingController
|
|
8
8
|
##this ensures api access to this controller.
|
9
9
|
include Auth::Concerns::DeviseConcern
|
10
10
|
include Auth::Concerns::TokenConcern
|
11
|
-
|
12
|
-
|
11
|
+
before_action :do_before_request , TCONDITIONS
|
12
|
+
before_action :is_admin_user, {:only => [:index]}
|
13
13
|
|
14
14
|
def new
|
15
15
|
|
@@ -8,7 +8,7 @@ class Auth::Shopping::PersonalitiesController < Auth::Shopping::ShoppingControll
|
|
8
8
|
##this ensures api access to this controller.
|
9
9
|
include Auth::Concerns::DeviseConcern
|
10
10
|
include Auth::Concerns::TokenConcern
|
11
|
-
|
12
|
-
|
11
|
+
before_action :do_before_request , TCONDITIONS
|
12
|
+
before_action :initialize_vars , TCONDITIONS
|
13
13
|
|
14
14
|
end
|
@@ -6,6 +6,6 @@ class Auth::Shopping::PlacesController < Auth::Shopping::ShoppingController
|
|
6
6
|
##this ensures api access to this controller.
|
7
7
|
include Auth::Concerns::DeviseConcern
|
8
8
|
include Auth::Concerns::TokenConcern
|
9
|
-
|
10
|
-
|
9
|
+
before_action :do_before_request , TCONDITIONS
|
10
|
+
before_action :initialize_vars , TCONDITIONS
|
11
11
|
end
|
@@ -9,8 +9,8 @@ class Auth::Work::CommunicationsController < Auth::Work::WorkController
|
|
9
9
|
##this ensures api access to this controller.
|
10
10
|
include Auth::Concerns::DeviseConcern
|
11
11
|
include Auth::Concerns::TokenConcern
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
before_action :do_before_request , TCONDITIONS
|
13
|
+
before_action :initialize_vars , TCONDITIONS
|
14
|
+
before_action :is_admin_user , :only => [:create,:update,:destroy,:edit]
|
15
15
|
|
16
16
|
end
|
@@ -9,8 +9,8 @@ class Auth::Work::InstructionsController < Auth::Work::WorkController
|
|
9
9
|
##this ensures api access to this controller.
|
10
10
|
include Auth::Concerns::DeviseConcern
|
11
11
|
include Auth::Concerns::TokenConcern
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
before_action :do_before_request , TCONDITIONS
|
13
|
+
before_action :initialize_vars , TCONDITIONS
|
14
|
+
before_action :is_admin_user , :only => [:create,:update,:destroy,:edit]
|
15
15
|
|
16
16
|
end
|
data/lib/auth/version.rb
CHANGED