diff --git a/app/models/user.rb b/app/models/user.rb index b721217bc..8c1717de9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -690,4 +690,3 @@ class User < ActiveRecord::Base end end end - diff --git a/app/views/users/custom_style.css.erb b/app/views/users/custom_style.css.erb index c3609df5c..c2879128d 100644 --- a/app/views/users/custom_style.css.erb +++ b/app/views/users/custom_style.css.erb @@ -1 +1 @@ -<%= CurrentUser.user.custom_style.html_safe %> \ No newline at end of file +<%= CurrentUser.user.custom_style.gsub(/(?:!important)?\s*;?\s*\}/, "!important;}").html_safe %> \ No newline at end of file