Fix for user order

This commit is contained in:
chris 2013-09-27 12:46:19 +08:00
parent 9186978551
commit dfec6f7642
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