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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e1420fa3beca223106c2b4ede934d6d2fef1f84
4
- data.tar.gz: 8d304ae8325dcb70dfb6a2678b9680a8137e82d0
3
+ metadata.gz: e316b1323b5ae20d2e5f0475b8a12bfc7b73aa80
4
+ data.tar.gz: 3a67ee93906c1b7af2cce7fec16ae45da3826b97
5
5
  SHA512:
6
- metadata.gz: 2e248e0b771c04b9a50a602bdc9f4640a6ed82dd0502593aabb1036c28b0635df138877ff1dd57feb6d5882ceecc55478c5261e6a5ba4ba0512890fb50f1a6bf
7
- data.tar.gz: 12f4ae59e849045843db51a3eb502d4b2fa12f1eb0c97e47459b9f1d5ba53b527aa07d75a775ccdf6709b131490ec4a6163dd7ff6b4d46f087f29bf0b14413f6
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
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.1.12".freeze
2
+ VERSION = "1.1.13".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni