cats_core 1.1.23 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cats/core/users_controller.rb +1 -0
- data/app/models/cats/core/user.rb +5 -0
- data/lib/cats/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e1e8fc9828a237ea12abdb6c0cf964aa9e0801ea7c5cb95c638071363c728b6
|
4
|
+
data.tar.gz: 2bc4c46c50608f1c12e99f4dbb50562bde3d255922bfb09fa905e15e24ed277e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66571c610864eda20aea1815fef61697bf83d8cba9063de6623914cdbfdd66d9160bc36575d8e4e688076c813f5982ad6623b8cbc0302340cc42fa35f0eaccc
|
7
|
+
data.tar.gz: 2e2205cfc0c14723a269dc4e7d9f4e0d09c67234ab8375a403c05c35ec05c37ec2027acff491b82df87b85c93aa0c5993f4352ea2988d9efc28f5cd28a3a242b
|
@@ -62,6 +62,7 @@ module Cats
|
|
62
62
|
def revoke_role
|
63
63
|
role = Cats::Core::Role.find(params[:role_id])
|
64
64
|
@user.roles.delete(role)
|
65
|
+
@user.remove_detail(role.name) if ['warehouse_manager', 'hub_manager'].include?(role.name)
|
65
66
|
data = ActiveModelSerializers::SerializableResource.new(role)
|
66
67
|
render json: { success: true, data: data }
|
67
68
|
end
|
data/lib/cats/core/version.rb
CHANGED