mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 09:49:17 +01:00
Don't reassign @user
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
cfce34365f
commit
e95ae7b12e
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ module ThemeHelper
|
|||
end
|
||||
|
||||
def active_theme_user
|
||||
user = @user ||= @answer&.user
|
||||
user = @user || @answer&.user # rubocop:disable Rails/HelperInstanceVariable
|
||||
|
||||
if user&.theme.present? && should_show_foreign_theme?
|
||||
user
|
||||
|
|
Loading…
Reference in a new issue