Skip to content

Commit

Permalink
Fix: #981 ログイン時にカスタムCSSが無条件で無効化されてしまう
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Feb 24, 2025
1 parent a52398d commit dad6d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def on_authentication_success(user, security_measure)
end

def disable_custom_css?
user_params[:disable_css].present? && user_params[:disable_css] != '0'
user_params[:disable_css].present? && user_params[:disable_css] == '1'
end

def disable_custom_css!(user)
Expand Down

0 comments on commit dad6d7f

Please sign in to comment.