summaryrefslogtreecommitdiff
path: root/app/models/node.rb
diff options
context:
space:
mode:
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.