Skip to content

Commit

Permalink
fixed calls to utils.isOutgoingAllowed. Issue #750
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Andric committed Nov 11, 2015
1 parent 9a6b36c commit 38aab25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function addMessage(opts) {
}


if (!utils.isOutgoingAllowed(doc)) {
if (!utils.isOutgoingAllowed(doc.from)) {
opts.state = 'denied';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ module.exports = {
}]
};

if (!self.isOutgoingAllowed(doc)) {
if (!self.isOutgoingAllowed(doc.from)) {
setTaskState(task, 'denied');
} else {
setTaskState(task, 'scheduled');
Expand Down

0 comments on commit 38aab25

Please sign in to comment.