summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-04 07:07:05 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-04 07:07:05 +0200
commit409d71ed471703be8c56f2639a3ecb0fa387e6a7 (patch)
tree0a7108786cb549e343d8926b232f52a191570422 /app/models/node.rb
parent974062f16169f6d07f2289564be6d72610b8770e (diff)
Give node lists a flag column and a shared action bar
Diffstat (limited to 'app/models/node.rb')
-rw-r--r--app/models/node.rb4
1 files changed, 4 insertions, 0 deletions
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
648 ) 648 )
649 end 649 end
650 650
651 def embargoed?
652 head&.published_at.present? && head.published_at > Time.zone.now
653 end
654
651 # Nodes are never destroyed recursively 655 # Nodes are never destroyed recursively
652 # Descendants must be removed or reparented individually first. 656 # Descendants must be removed or reparented individually first.
653 # The Trash feature will be the ordinary path to deletion. 657 # The Trash feature will be the ordinary path to deletion.