Skip to content

Commit

Permalink
[bug] Fix bug 49716
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed May 24, 2021
1 parent 1772605 commit 279f651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,9 @@ exports.downloadAs = function(req, res) {
}
var selectRes = yield taskResult.select(docId);
var row = selectRes.length > 0 ? selectRes[0] : null;
addPasswordToCmd(cmd, row && row.password);
if (!cmd.getWithoutPassword()) {
addPasswordToCmd(cmd, row && row.password);
}
cmd.setData(req.body);
var outputData = new OutputData(cmd.getCommand());
switch (cmd.getCommand()) {
Expand Down

0 comments on commit 279f651

Please sign in to comment.