org settings: Use people.get_active_human_persons to get active humans.

This commit is contained in:
Shubham Dhama
2018-07-29 00:22:46 +05:30
committed by Tim Abbott
parent 16357fc84a
commit 2bcd21aeca
2 changed files with 2 additions and 6 deletions

View File

@@ -389,9 +389,7 @@ exports.set_up = function () {
var li = $(e.currentTarget).closest('li');
var bot_id = li.find('.bot_info').attr('data-user-id').valueOf();
var bot = bot_data.get(bot_id);
var users_list = people.get_realm_persons().filter(function (person) {
return !person.is_bot;
});
var users_list = people.get_active_human_persons();
$("#edit_bot").empty();
$("#edit_bot").append(templates.render('edit_bot', {bot: bot,
users_list: users_list}));