diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index b0532faf..a494a4d1 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -18,7 +18,7 @@ module UserHelper end def moderation_view? - current_user&.mod? && session[:moderation_view] == true + !!(current_user&.mod? && session[:moderation_view] == true) end private