thecore_api 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/info_controller.rb +2 -6
- data/lib/thecore_api/version.rb +1 -1
- 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: e316b1323b5ae20d2e5f0475b8a12bfc7b73aa80
|
4
|
+
data.tar.gz: 3a67ee93906c1b7af2cce7fec16ae45da3826b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37a18e203307e02b3d7332b1fc4da6c58b3911b1b928d7e75c0932cad7167d305ead0f00c9389180ea7584e2ba37eac5cb726fff508e97329fe16398691ebc9
|
7
|
+
data.tar.gz: fcebff01c98eedd1813c20b6cf106dbac8b1c3da95fd6aa833ac22e286eb9ebdc46ba8856943391bb7323403cc2cd2a543b3d1c1c40e4a336139a8fea278e240
|
@@ -15,11 +15,7 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
15
15
|
def token
|
16
16
|
render json: {
|
17
17
|
token: @current_user.authentication_token,
|
18
|
-
email: @current_user.email
|
19
|
-
roles: @current_user.roles,
|
20
|
-
admin: @current_user.admin,
|
21
|
-
third_party: @current_user.third_party,
|
22
|
-
id: @current_user.id
|
18
|
+
email: @current_user.email
|
23
19
|
}.to_json, status: 200
|
24
20
|
end
|
25
21
|
|
@@ -28,7 +24,7 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
28
24
|
def roles
|
29
25
|
render json: ROLES.to_json, status: 200
|
30
26
|
end
|
31
|
-
|
27
|
+
|
32
28
|
private
|
33
29
|
|
34
30
|
# Method overridden because the first time I have to ask for the token
|
data/lib/thecore_api/version.rb
CHANGED