Skip to content

Commit

Permalink
fix(permissions): disabled accounts showing in assignee list
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 5, 2019
1 parent 1520ad5 commit ebe6504
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/migration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var _ = require('lodash')
var async = require('async')
var winston = require('winston')
var semver = require('semver')
var moment = require('moment-timezone')

var SettingsSchema = require('../models/setting')
var userSchema = require('../models/user')
Expand Down
2 changes: 1 addition & 1 deletion src/socketio/ticketSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ events.onUpdateAssigneeList = function (socket) {
socket.on('updateAssigneeList', function () {
roleSchema.getAgentRoles(function (err, roles) {
if (err) return true
userSchema.find({ role: { $in: roles } }, function (err, users) {
userSchema.find({ role: { $in: roles }, deleted: false }, function (err, users) {
if (err) return true

var sortedUser = _.sortBy(users, 'fullname')
Expand Down

0 comments on commit ebe6504

Please sign in to comment.