caboose-cms 0.7.35 → 0.7.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/caboose/user.rb +3 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e43b30634033a67c5d9855f32f696fb96f7e809f
|
4
|
+
data.tar.gz: d804701252602f78b36dcdd91d4505521fdf9d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 280a55f897ee7bafea5d2d2f2582f79ca8a8c311e868362137be0946d0d1a9675b558c439505daccce8db3590f778e870fed1eb5ee78e4b38d6f4f2f5d09cb5c
|
7
|
+
data.tar.gz: 2d227c4d3e18255129b4b099bdc99c92187126848630ea20cb3ae3b8a31e9f8ba310246f2e1083a86d5103a1c4e06eb26b9ef5b996472beb48fa7b28f65e76d2
|
data/app/models/caboose/user.rb
CHANGED
@@ -41,12 +41,12 @@ class Caboose::User < ActiveRecord::Base
|
|
41
41
|
eli = Caboose::Role.logged_in_role(self.site_id)
|
42
42
|
return true if self.id != elo.id && eli.is_allowed(resource, action)
|
43
43
|
for role in roles
|
44
|
-
Caboose.log("Checking permissions for #{role.name} role")
|
44
|
+
#Caboose.log("Checking permissions for #{role.name} role")
|
45
45
|
if role.is_allowed(resource, action)
|
46
|
-
Caboose.log("Role #{role.name} is allowed to view page")
|
46
|
+
#Caboose.log("Role #{role.name} is allowed to view page")
|
47
47
|
return true
|
48
48
|
else
|
49
|
-
Caboose.log("Role #{role.name} is not allowed to view page")
|
49
|
+
#Caboose.log("Role #{role.name} is not allowed to view page")
|
50
50
|
end
|
51
51
|
#return true if role.is_allowed(resource, action)
|
52
52
|
end
|
data/lib/caboose/version.rb
CHANGED