Allow published/approved campaign html variant to be edited (#7045)
This commit is contained in:
parent
abca674c15
commit
e97cacef1e
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class HtmlVariant < ApplicationRecord
|
|||
private
|
||||
|
||||
def no_edits
|
||||
return if group == "campaign"
|
||||
published_and_approved = (approved && (html_changed? || name_changed? || group_changed?)) && persisted?
|
||||
errors.add(:base, "cannot change once published and approved") if published_and_approved
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue