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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c03bef0350fc88446c8319e580032d27d476c31521e87e72c0ba68f39bb5e83
|
4
|
+
data.tar.gz: 36bc7058d29f1700189f4bfdd6661064bd2cea6097df1a0c3233af652ec90a8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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.
|
data/lib/auth/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|