mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: 🈂️ Allow closing polls in multi-locale sites
This commit is contained in:
@ -147,8 +147,8 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def set_locale
|
||||
I18n.locale = if SiteSetting.allow_user_locale && current_user && current_user.locale.present?
|
||||
current_user.locale
|
||||
I18n.locale = if current_user
|
||||
current_user.effective_locale
|
||||
else
|
||||
SiteSetting.default_locale
|
||||
end
|
||||
|
Reference in New Issue
Block a user