From 409d71ed471703be8c56f2639a3ecb0fa387e6a7 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 4 Aug 2026 07:07:05 +0200 Subject: Give node lists a flag column and a shared action bar --- app/models/node.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/node.rb') diff --git a/app/models/node.rb b/app/models/node.rb index d6fe32ff..f8c29b48 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -648,6 +648,10 @@ class Node < ApplicationRecord ) end + def embargoed? + head&.published_at.present? && head.published_at > Time.zone.now + end + # Nodes are never destroyed recursively # Descendants must be removed or reparented individually first. # The Trash feature will be the ordinary path to deletion. -- cgit v1.3