Fix for user order

This commit is contained in:
chris 2013-09-27 12:46:19 +08:00 committed by saurabhbhatia
parent fd77230247
commit a6b47d9e72
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
if to_go > 0
user_at_position = User.where(position: to_go - 1).first
user = User.find(pair[1])
if user_at_position && !user_at_position == user
if user_at_position && !(user_at_position == user)
if user.position > user_at_position.position
user.move_above(user_at_position)
else