wordjelly-auth 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09e1518d42c3d9faa10b1451540086340ecea785'
|
|
4
|
+
data.tar.gz: da81a05591c7e5d26dba3175d45e433565d63c62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ede5f6e5891c1d9ec4a7f1212bf8504dc40a58ee646546e823e0a013de6a88f85b238a5288c7aeedf72aef534a4b9a2934534cd392cb85dcfac834e5bdd7c509
|
|
7
|
+
data.tar.gz: 6b692c47a079084b6316d0bc304a331aedc9597f1e88c9926468c2fb5ab2a05da780ab22257c59518d5c98f74abe7ca0c3c3559fad0f3884cc3d17a32bdeaf72
|
|
@@ -48,13 +48,13 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
|
48
48
|
##{:resource => "users", :user => {:admin,:request_send_reset_password_link}, :id}
|
|
49
49
|
def update
|
|
50
50
|
|
|
51
|
-
puts "the profile resource is:"
|
|
52
|
-
puts @profile_resource.to_s
|
|
51
|
+
#puts "the profile resource is:"
|
|
52
|
+
#puts @profile_resource.to_s
|
|
53
53
|
|
|
54
54
|
check_for_update(@profile_resource)
|
|
55
55
|
|
|
56
|
-
puts "going to assing attributes."
|
|
57
|
-
puts "resource params are: #{}"
|
|
56
|
+
#puts "going to assing attributes."
|
|
57
|
+
#puts "resource params are: #{}"
|
|
58
58
|
@profile_resource.assign_attributes(@resource_params)
|
|
59
59
|
|
|
60
60
|
@profile_resource.m_client = self.m_client
|
|
@@ -152,7 +152,7 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
|
152
152
|
params.permit(filters)
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
## if
|
|
155
|
+
## if i want to allow more things here then
|
|
156
156
|
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -114,6 +114,10 @@ module Auth::Concerns::UserConcern
|
|
|
114
114
|
|
|
115
115
|
field :admin, type: Boolean, default: false
|
|
116
116
|
|
|
117
|
+
## the only way to set this is from the mongo console.
|
|
118
|
+
## executive admin can do the actions like setting other admins as workers etc.
|
|
119
|
+
field :chief_admin, type: Boolean, default: false
|
|
120
|
+
|
|
117
121
|
attr_accessor :m_client
|
|
118
122
|
|
|
119
123
|
##additional parameter by which login can be done.
|
|
@@ -751,7 +755,7 @@ module Auth::Concerns::UserConcern
|
|
|
751
755
|
## this method is to be overridden, it returns the value of the admin_variable.
|
|
752
756
|
## it can be used to decide if the user is an admin.
|
|
753
757
|
## @used_in : payment_concern in the refund_callback
|
|
754
|
-
def is_admin?
|
|
758
|
+
def is_admin?(args=nil)
|
|
755
759
|
admin
|
|
756
760
|
end
|
|
757
761
|
|
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.3.
|
|
4
|
+
version: 1.3.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bhargav
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xpath
|