mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[jwt] Fix broken mail merge after a13ba3ea27
This commit is contained in:
@ -1030,6 +1030,7 @@ exports.downloadAs = function(req, res) {
|
||||
if (cmd.getTokenDownload()) {
|
||||
let checkJwtRes = docsCoServer.checkJwt(docId, cmd.getTokenDownload(), commonDefines.c_oAscSecretType.Browser);
|
||||
if (checkJwtRes.decoded) {
|
||||
isValidJwt = true;
|
||||
cmd.setFormat(checkJwtRes.decoded.fileType);
|
||||
cmd.setUrl(checkJwtRes.decoded.url);
|
||||
cmd.setWithAuthorization(true);
|
||||
|
||||
Reference in New Issue
Block a user