diff --git a/frontend/package-lock.json b/frontend/package-lock.json index fb81f8a4e7..c4a1963703 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16,7 +16,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "3.0.1", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "1.0.159", + "@seafile/sdoc-editor": "1.0.160", "@seafile/seafile-calendar": "0.0.28", "@seafile/seafile-editor": "1.0.127", "@seafile/sf-metadata-ui-component": "^0.0.56", @@ -4728,9 +4728,9 @@ "integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig==" }, "node_modules/@seafile/sdoc-editor": { - "version": "1.0.159", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.159.tgz", - "integrity": "sha512-9AhAWN+wwrHFzItMX2bbuAKefagmMeBaskn5bojQ8rn0XhpyufwNOL1lvoQNIuR0zHE1R9wCg3RTAgI6XCfkkw==", + "version": "1.0.160", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-1.0.160.tgz", + "integrity": "sha512-QH+dABEf0aPPQLY/MdIZ1hZSfoxKvaLdCnT9HDpcyS7T+3ILIPLAS3XprgUTrk+6AY2/VBnVXdMXANl1TXBfRQ==", "dependencies": { "@seafile/print-js": "1.6.6", "@seafile/react-image-lightbox": "2.0.5", diff --git a/frontend/package.json b/frontend/package.json index 22f5bf2af2..6505706b6f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,7 +11,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "3.0.1", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "1.0.159", + "@seafile/sdoc-editor": "1.0.160", "@seafile/seafile-calendar": "0.0.28", "@seafile/seafile-editor": "1.0.127", "@seafile/sf-metadata-ui-component": "^0.0.56", diff --git a/seahub/views/file.py b/seahub/views/file.py index 0862b3e51e..90182069a9 100644 --- a/seahub/views/file.py +++ b/seahub/views/file.py @@ -2183,7 +2183,6 @@ def view_sdoc_revision(request, repo_id, revision_id): seadoc_perm = 'rw' if can_edit_file else 'r' return_dict['can_edit_file'] = can_edit_file return_dict['seadoc_access_token'] = gen_seadoc_access_token(file_uuid, filename, username, permission=seadoc_perm) - return_dict['mobile_login'] = request.session.get(SESSION_MOBILE_LOGIN_KEY, False) # revision revision_info = is_seadoc_revision(file_uuid, revision)