Story: fix saving old stories with inactive tags

This commit is contained in:
joshua stein 2016-06-01 14:35:36 -05:00
parent ba8a39ee93
commit d3a826d80e

View file

@ -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