Fix moderation panel.
This commit is contained in:
parent
3989b71944
commit
8b129bbbf4
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue