effective_pages 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_menus_helper.rb +1 -1
- data/lib/effective_pages/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: afb4f4c713dad16254ce08850d33f4b585b78d11ba55610671f24968ff935079
|
4
|
+
data.tar.gz: 937fe7d81c8d5954842b6c645ad439a191204fb5966c1c213f68a1c5a715ba63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b25442cb26382208d134b491f9ad9a6a153ed3396c34bd3b2ed5611c42d055e90e9235d059303ee9bcbef968ef585426ec94fbd0de9e35bd76aeebb22bd2092f
|
7
|
+
data.tar.gz: 4dfd30367d586e0333ee3a6f0ad460b8893f179d6c7d3cd98a57efd89ee1a86294880803f5838f7198f253e868f639df29ad9b291d62f22be41123d4ee620c20
|
@@ -3,7 +3,7 @@ module EffectiveMenusHelper
|
|
3
3
|
menu = Effective::Menu.find_by_title(menu.to_s) if menu.kind_of?(String) || menu.kind_of?(Symbol)
|
4
4
|
return "<ul class='nav navbar-nav'><li>Menu '#{menu}' does not exist</li></ul>".html_safe if !menu.present?
|
5
5
|
|
6
|
-
if
|
6
|
+
if effectively_editting? && EffectiveResources.authorized?(controller, :edit, menu)
|
7
7
|
options[:menu_id] = menu.id
|
8
8
|
form_for(menu, :url => '/') { |form| options[:form] = form }
|
9
9
|
end
|