Encrypt href for new pads in old shared folders
This commit is contained in:
parent
5dcc7643da
commit
f42574948e
@ -59,7 +59,7 @@ define([
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// XXX only needed if we want a manual migration from the share modal...
|
// SFMIGRATION: only needed if we want a manual migration from the share modal...
|
||||||
SF.migrate = function (channel) {
|
SF.migrate = function (channel) {
|
||||||
var sf = allSharedFolders[channel];
|
var sf = allSharedFolders[channel];
|
||||||
if (!sf) { return; }
|
if (!sf) { return; }
|
||||||
|
|||||||
@ -39,13 +39,6 @@ define([
|
|||||||
userObject: userObject,
|
userObject: userObject,
|
||||||
leave: leave
|
leave: leave
|
||||||
};
|
};
|
||||||
if (false) { // XXX allow shared folder migration while using it
|
|
||||||
// NOTE: this is not needed if we always use the editKey in userObject, even with old version
|
|
||||||
var path = proxy.drive ? ['drive', 'version'] : ['version'];
|
|
||||||
proxy.on('change', path, function () {
|
|
||||||
userObject.setReadOnly(false, editKey);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return userObject;
|
return userObject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -105,10 +105,6 @@ define([
|
|||||||
module.init = function (files, config) {
|
module.init = function (files, config) {
|
||||||
var exp = {};
|
var exp = {};
|
||||||
|
|
||||||
if (false && !files.version) { // XXX if we remove false, old shared folders won't encrypt new hrefs
|
|
||||||
config.editKey = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
exp.cryptor = createCryptor(config.editKey);
|
exp.cryptor = createCryptor(config.editKey);
|
||||||
|
|
||||||
exp.setReadOnly = function (state, key) {
|
exp.setReadOnly = function (state, key) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user