Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmorenoh committed Nov 25, 2020
2 parents da08746 + 338aafc commit 93d8308
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/models/concerns/sanitizable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 93d8308

Please sign in to comment.