documentation-editor 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6bd0a7e0fd131c4cc89835f651bd4fd6394a72
|
4
|
+
data.tar.gz: af014098a71b07a5782d2d8cbc6861b0fac2a250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd2f4e684959b41a21be1794a0ddf60669e60dd7bc6e3ce7aa86719eccb605ddaffabeed0c5080d528ad9d9a89c4cc26c81dad28d92ff27485f3347d3ba20a70
|
7
|
+
data.tar.gz: 7dbff47da968167994ec8eee56b2b3701b441e2d11269d66cbe3eaaedd38668247707ab86a9b25c9a39e4bd068eca904921adf5ab951f13a059bdbbc4f6e0aa9
|
@@ -7,9 +7,9 @@ module DocumentationEditor
|
|
7
7
|
if DocumentationEditor::Config.is_admin
|
8
8
|
before_filter except: [:show] do |controller|
|
9
9
|
controller.instance_eval do
|
10
|
-
if !DocumentationEditor::Config.is_admin
|
10
|
+
if !controller.send(DocumentationEditor::Config.is_admin)
|
11
11
|
redirect_to '/'
|
12
|
-
|
12
|
+
false
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|