Skip to content

Commit

Permalink
don't apply filters when unpublishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed May 4, 2023
1 parent 7d9de8b commit 897f45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/plugin_init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Resource.class_eval do
def publish!(setting = true)
object_graph = self.object_graph(ChildPublishing.filters)
object_graph = setting ? self.object_graph(ChildPublishing.filters) : self.object_graph

object_graph.each do |model, ids|
next unless model.publishable?
Expand Down

0 comments on commit 897f45c

Please sign in to comment.