mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix password-protected files
This commit is contained in:
parent
24e181ab9a
commit
07ed884f04
@ -570,7 +570,7 @@ define([
|
||||
var defaultTitle = Utils.UserObject.getDefaultName(parsed);
|
||||
var edPublic, curvePublic, notifications, isTemplate;
|
||||
var settings = {};
|
||||
var isSafe = ['debug', 'profile', 'drive', 'teams', 'calendar'].indexOf(currentPad.app) !== -1;
|
||||
var isSafe = ['debug', 'profile', 'drive', 'teams', 'calendar', 'file'].indexOf(currentPad.app) !== -1;
|
||||
|
||||
var isDeleted = isNewFile && currentPad.hash.length > 0;
|
||||
if (isDeleted) {
|
||||
|
||||
@ -15,8 +15,8 @@ define([
|
||||
href = obj.href;
|
||||
hash = obj.hash;
|
||||
}).nThen(function (/*waitFor*/) {
|
||||
var addData = function (meta, Cryptpad) {
|
||||
meta.filehash = Cryptpad.currentPad.hash;
|
||||
var addData = function (meta, Cryptpad, user, Utils) {
|
||||
meta.filehash = Utils.currentPad.hash;
|
||||
};
|
||||
SFCommonO.start({
|
||||
cache: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user