Fix moderation panel.

This commit is contained in:
Georg Gadinger 2020-04-19 18:33:20 +02:00
parent 3989b71944
commit 8b129bbbf4
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class ModerationController < ApplicationController
@host = User.find(@user_id) @host = User.find(@user_id)
@users = [] @users = []
return if @host.nil? return if @host.nil?
@users = User.where('(current_sign_in_ip = ? OR last_sign_in_ip = ?) AND id != ?', @host.current_sign_in_ip, @host.last_sign_in_ip, @user_id) @users = User.where('(current_sign_in_ip = ? OR last_sign_in_ip = ?) AND id != ?', @host.current_sign_in_ip, @host.last_sign_in_ip, @user_id).to_a
@users.unshift @host @users.unshift @host
render template: 'moderation/priority' render template: 'moderation/priority'