wordjelly-auth 1.4.6 → 1.4.7

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
  SHA256:
3
- metadata.gz: 17b751740ffb628ab786d1d81ec9d33d26aa13e22251f78007a2626871200a09
4
- data.tar.gz: bb41fc9272e8a3fa8a21ad576205bcf8a099893ca6631aca2700d1bc416bb01c
3
+ metadata.gz: 4c03bef0350fc88446c8319e580032d27d476c31521e87e72c0ba68f39bb5e83
4
+ data.tar.gz: 36bc7058d29f1700189f4bfdd6661064bd2cea6097df1a0c3233af652ec90a8e
5
5
  SHA512:
6
- metadata.gz: d001aa14b5dc230432c9e85b9cc2d4aa5a448527049aad9bd5c974d4d6531a25b8f6f913821efd0db251711591460124538c7c4528128b9daad7115ea5654e0b
7
- data.tar.gz: 4f9e96e12592ea1c59743e646c940f94fd51e175971b0d9570fd79f353cbef66b682f145a76d151436a177f1d5fc23b57cab10fad6a862cee8cce09ecdb705f2
6
+ metadata.gz: 3f57d268e51a72cd42cfc681b2fc37341714c8ff0eda3ad7bd862898280a8f1bae6088f3045ba33645c419449b1ba7d0ef57fe803e619034d08b4de96fad4ee9
7
+ data.tar.gz: a9a2e88b681c2f3eee65141bc593ddea5a8d4b13f4ada6904f03fed8dbc9dd64dc9fb8156b3c3a635c5b659bcd3dc704af1ffb0eff37217d3647afbe483a4a6c
@@ -1,6 +1,6 @@
1
1
  class Auth::ProfilesController < Auth::ApplicationController
2
2
 
3
- CONDITIONS_FOR_TOKEN_AUTH = [:get_user_id,:show,:update,:set_proxy_resource]
3
+ CONDITIONS_FOR_TOKEN_AUTH = [:get_user_id,:show,:update,:set_proxy_resource, :edit]
4
4
 
5
5
  TCONDITIONS = {:only => CONDITIONS_FOR_TOKEN_AUTH}
6
6
 
@@ -141,6 +141,8 @@ module Auth::Concerns::EsConcern
141
141
 
142
142
  field :public, type:String, default: "no"
143
143
 
144
+ field :document_type, type:String
145
+
144
146
  def es_concern_attributes
145
147
  ["tags","autocomplete_description"]
146
148
  end
@@ -793,6 +793,16 @@ module Auth::Concerns::UserConcern
793
793
  admin
794
794
  end
795
795
 
796
+ ## @return[String] the first name " " last_name,
797
+ ## if none is defined, will return an empty string.
798
+ ## if only one of them is defined, will only return it.
799
+ def full_name
800
+ n = ""
801
+ n+= self.first_name if self.first_name
802
+ n+= " #{self.last_name}" if self.last_name
803
+ n
804
+ end
805
+
796
806
 
797
807
 
798
808
  ## @return[Boolean] true/false : override to decide how the user decides if it can create discount coupons for its contents or not.
@@ -1,3 +1,4 @@
1
+ <%= content_for(:nav_links) if content_for?(:nav_links) %>
1
2
  <% if current_res && resource_in_navbar?(current_res)%>
2
3
  <span id="personalization_nav_links">
3
4
  <%= content_for(:personalization_nav_links) if content_for?(:personalization_nav_links) %>
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordjelly-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bhargav
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk