Remove role color highlighting from custom css (#33493)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-01-07 16:28:35 +00:00
1 parent bbe9dcfade
commit 7ad44e22ed
5 files changed
+2 -46

No files matched your search

-6
View File
@@ -1,8 +1,6 @@
# frozen_string_literal: true
class CustomCssController < ActionController::Base # rubocop:disable Rails/ApplicationController
before_action :set_user_roles
def show
expires_in 3.minutes, public: true
render content_type: 'text/css'
@@ -14,8 +12,4 @@ class CustomCssController < ActionController::Base # rubocop:disable Rails/Appli
Setting.custom_css
end
helper_method :custom_css_styles
def set_user_roles
@user_roles = UserRole.providing_styles
end
end