app/controllers/archangel/backend/users_controller.rb in archangel-0.0.7 vs app/controllers/archangel/backend/users_controller.rb in archangel-0.0.8
- old
+ new
@@ -307,20 +307,20 @@
end
def set_resources
@users = current_site.users
.where.not(id: current_user.id)
+ .order(name: :asc)
.page(page_num).per(per_page)
authorize @users
end
def set_resource
resource_id = params.fetch(:id)
@user = current_site.users
.where.not(id: current_user.id)
- .order(name: :asc)
.find_by!(username: resource_id)
authorize @user
end