diff --git a/app/models/concerns/sanitizable.rb b/app/models/concerns/sanitizable.rb index 8602257ef0c..4c96f439cab 100644 --- a/app/models/concerns/sanitizable.rb +++ b/app/models/concerns/sanitizable.rb @@ -15,10 +15,12 @@ def description protected def sanitize_description - if translatable_description? - sanitize_description_translations - else - self.description = WYSIWYGSanitizer.new.sanitize(description) + if self.author.blank? || !self.author.administrator? + if translatable_description? + sanitize_description_translations + else + self.description = WYSIWYGSanitizer.new.sanitize(description) + end end end