From d3a826d80e6a6f813c789a4a9c77e3823dd6583a Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 1 Jun 2016 14:35:36 -0500 Subject: [PATCH] Story: fix saving old stories with inactive tags --- app/models/story.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/story.rb b/app/models/story.rb index d92ddd4..216e4d1 100644 --- a/app/models/story.rb +++ b/app/models/story.rb @@ -239,7 +239,7 @@ class Story < ActiveRecord::Base if !t.tag.valid_for?(u) raise "#{u.username} does not have permission to use privileged " << "tag #{t.tag.tag}" - elsif t.tag.inactive? && !t.new_record? && !t.marked_for_destruction? + elsif t.tag.inactive? && t.new_record? && !t.marked_for_destruction? # stories can have inactive tags as long as they existed before raise "#{u.username} cannot add inactive tag #{t.tag.tag}" end