effective_pages 3.13.3 → 3.13.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7df91837584e6bb60e581a08d3b7645420f1e221ba02e335fbbc0e2f04f7b942
|
4
|
+
data.tar.gz: a4e571eeb579d13765ce5a79d7dacd03db0f247dfbf7c4454a87c7c089c9a6fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca45e9c3a6f522e3da7bc8d53703cd2c21a32f836189978454d191d341d3310fb97785ce505a12a4aefa246bd5b8ff54b18bfb9f37d85123fae20b327706259c
|
7
|
+
data.tar.gz: 00b57851042a4f8172411242e37152df41466f0802c6c3bb9dc2d1439b2434549f4a492346279343d344ff3bbce3ddf053f7900653e238cbb5a2437441a231c7
|
@@ -99,9 +99,7 @@ module Effective
|
|
99
99
|
scope = all.deep.sorted
|
100
100
|
|
101
101
|
if defined?(EffectiveRoles) && EffectivePages.use_effective_roles
|
102
|
-
|
103
|
-
scope = scope.for_role(user.roles)
|
104
|
-
end
|
102
|
+
scope = scope.for_role(user&.roles)
|
105
103
|
end
|
106
104
|
|
107
105
|
unless unpublished
|
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
= f.check_box :menu, label: 'Yes, display this page in a menu'
|
6
6
|
|
7
|
-
= f.
|
7
|
+
= f.hide_if(:menu, true) do
|
8
|
+
= f.hidden_field :menu_parent_id, value: nil
|
8
9
|
|
10
|
+
= f.show_if(:menu, true) do
|
9
11
|
= f.check_box :menu_root_level, label: "This is a top level menu item. It has no content and cannot be viewed, but can have children pages"
|
10
12
|
|
11
13
|
= f.show_if :menu_root_level, true do
|
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: 3.13.
|
4
|
+
version: 3.13.5
|
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: 2024-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|