0
0
Fork 0

Remove role color highlighting from custom css (#33493)

This commit is contained in:
Matt Jankowski 2025-01-07 11:28:35 -05:00 committed by GitHub
parent bbe9dcfade
commit 7ad44e22ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2 additions and 46 deletions

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