wordjelly-auth 1.3.6 → 1.3.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
  SHA1:
3
- metadata.gz: 3bb90eefbe2a614f5a57b6e8e8c7e1606ae35491
4
- data.tar.gz: c9250a32e8baa63b0656effad2475f1a834271c9
3
+ metadata.gz: '09e1518d42c3d9faa10b1451540086340ecea785'
4
+ data.tar.gz: da81a05591c7e5d26dba3175d45e433565d63c62
5
5
  SHA512:
6
- metadata.gz: 8636002e680e0449346d820c98fc5ffee65dc265fbf52eb61004b7396909adaffb9d0ecbff6c2cb71f024d6f678b063c746e371751f19ba9b4fe714217322f36
7
- data.tar.gz: 7bea9b3953bec721695a461a950b21ab1cde94a56550200c0660afea962959c0e5001a50f0e08245622c1ed5ca460149f0125fb929792ef3d11b9ef07e9cd1fe
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 the user is not an admin, then
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
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.3.6"
2
+ VERSION = "1.3.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.3.6
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-23 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xpath