Merge branch 'ownership' of github.com:xwiki-labs/cryptpad into origin/ownership

This commit is contained in:
ansuz
2019-09-02 17:25:12 +02:00
13 changed files with 456 additions and 61 deletions

View File

@@ -3716,6 +3716,20 @@ define([
data.sharedFolder = true;
}
if (manager.isFile(el) && data.roHref) { // Only for pads!
sframeChan.query('Q_GET_PAD_METADATA', {
channel: data.channel
}, function (err, val) {
console.log(arguments);
if (!err && !(val && val.error)) {
data.owners = val.owners;
data.expire = val.expire;
data.pending_owners = val.pending_owners;
}
UIElements.getProperties(common, data, cb);
});
return;
}
UIElements.getProperties(common, data, cb);
};