lib/scrivito/page_config.rb in scrivito_sdk-1.8.1 vs lib/scrivito/page_config.rb in scrivito_sdk-1.9.0.rc1

- old
+ new

@@ -39,10 +39,10 @@ has_children: obj.children.any?, has_conflict: obj.has_conflict?, has_details_view: obj_has_details_view?, modification: modification(obj), parent_path: obj.parent_path, - restriction_messages: editor.restriction_messages_for(obj), + is_restricted: editor.restriction_messages_for(obj).any?, } end def obj_has_details_view? lookup_context.find(obj.details_view_path).present?