Merge branch 'soon'
This commit is contained in:
commit
e4b47ae626
@ -788,6 +788,7 @@ define([
|
|||||||
getAllStores().forEach(function (s) {
|
getAllStores().forEach(function (s) {
|
||||||
s.manager.getPadAttribute(data, waitFor(function (err, val) {
|
s.manager.getPadAttribute(data, waitFor(function (err, val) {
|
||||||
if (err) { return; }
|
if (err) { return; }
|
||||||
|
if (!val || typeof(val) !== "object") { return void console.error("Not an object!"); }
|
||||||
if (!res.value || res.atime < val.atime) {
|
if (!res.value || res.atime < val.atime) {
|
||||||
res.atime = val.atime;
|
res.atime = val.atime;
|
||||||
res.value = val.value;
|
res.value = val.value;
|
||||||
|
|||||||
@ -741,8 +741,12 @@ define([
|
|||||||
cb = cb || function () {};
|
cb = cb || function () {};
|
||||||
var sfId = Env.user.userObject.getSFIdFromHref(data.href);
|
var sfId = Env.user.userObject.getSFIdFromHref(data.href);
|
||||||
if (sfId) {
|
if (sfId) {
|
||||||
|
var sfData = Env.user.proxy[UserObject.SHARED_FOLDERS][sfId];
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
cb(null, Env.user.proxy[UserObject.SHARED_FOLDERS][sfId][data.attr]);
|
cb(null, {
|
||||||
|
value: sfData[data.attr],
|
||||||
|
atime: 1
|
||||||
|
});
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,7 @@ define([
|
|||||||
password: config.data.password,
|
password: config.data.password,
|
||||||
isTemplate: config.data.isTemplate,
|
isTemplate: config.data.isTemplate,
|
||||||
file: config.data.file,
|
file: config.data.file,
|
||||||
|
enableTeams: localStorage.CryptPad_teams === "1",
|
||||||
};
|
};
|
||||||
for (var k in additionalPriv) { metaObj.priv[k] = additionalPriv[k]; }
|
for (var k in additionalPriv) { metaObj.priv[k] = additionalPriv[k]; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user