effective_pages 1.0.6 → 1.0.7

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: ff3bfea631ca98daace97fda069c9f32d62a9099
4
- data.tar.gz: 2194b323265b6f42fa8beb20fc037f3448707928
3
+ metadata.gz: 5eb7db7c0b49c2f9c5a0c7d8882b5497c1dfc147
4
+ data.tar.gz: 6170e0b5339723203b3d499fd3ce452467db96af
5
5
  SHA512:
6
- metadata.gz: d1857e0d0ad14b5591e12ce6d427bfe129fdfd1b415ecb5363acf0b4ab1e798f7dd173c4fe6a91f07f67771beff159a43ab2fccc0ab346ea6e64af12bd3d86b0
7
- data.tar.gz: efee68321d1a532b853ea3afefd7114d9b5f99f46068fc32d49d51dd2af1b984661fc4efbdf8029e469a3b44cfa056fad723342ce0c2561ecfb3e2cf4dd619ac
6
+ metadata.gz: 1c2c65c6369aaa522919379cef633d85dfdbf7a9e7159e1866cb478fa6f178a4da72324a9d3d4b95ab669d72f20bb53c239995f3b03b0718d9b9d30b7c98fcc2
7
+ data.tar.gz: 20684eaff5417e67bb6e71ed2fc265a192cc646e8dd0c8eec812f0b8b39ad916ab3361f8f3d2b1045cf7477528d893c42eaeeacbefb551506da9a2b3cc7f681e
@@ -3,7 +3,7 @@ module EffectiveMenusHelper
3
3
  menu = Effective::Menu.find_by_title(menu) if menu.kind_of?(String)
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 (effectively_editting? rescue false)
6
+ if (effectively_editting? && EffectivePages.authorized?(:edit, menu) rescue false)
7
7
  options[:menu_id] = menu.id
8
8
  form_for(menu, :url => '/') { |form| options[:form] = form }
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '1.0.6'.freeze
2
+ VERSION = '1.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-24 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails