petergate 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/petergate/action_controller/base.rb +6 -6
- data/lib/petergate/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: ad2ca3aedcf715c1b73a506449725242a0be4d3e
|
4
|
+
data.tar.gz: b0cabc242f2cd1e80bda78162633356aa0a7216b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b672cd4a53dae9a55e3cb4cde2f9f3ce0e06084553af450c67bbb963c6855baad5bba8639a3c16115ef2f8afa5ce5f54648b959920af519ef0c3c33b202efa01
|
7
|
+
data.tar.gz: 93876867cbf3d0e0fa16b0a6d1451ebd1acd10d518190734f35d15b6be8dec68df3ad9502621cdfb1c5b98d35ac168f1af92488361d7f49b4b1a8e2602f3f3f9
|
@@ -41,6 +41,12 @@ module Petergate
|
|
41
41
|
subclass.instance_variable_set("@_controller_rules", instance_variable_get("@_controller_rules"))
|
42
42
|
subclass.instance_variable_set("@_controller_message", instance_variable_get("@_controller_message"))
|
43
43
|
end
|
44
|
+
end
|
45
|
+
|
46
|
+
class_eval do
|
47
|
+
def check_access
|
48
|
+
permissions(self.class.controller_rules)
|
49
|
+
end
|
44
50
|
|
45
51
|
before_action do
|
46
52
|
unless logged_in?(:root_admin)
|
@@ -55,12 +61,6 @@ module Petergate
|
|
55
61
|
end
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
|
-
class_eval do
|
60
|
-
def check_access
|
61
|
-
permissions(self.class.controller_rules)
|
62
|
-
end
|
63
|
-
end
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
data/lib/petergate/version.rb
CHANGED