Fix owned upload files as a team

pull/1/head
yflory 5 years ago
parent 482460e286
commit 0276858645

@ -112,8 +112,7 @@ define([
}; };
common.getEdPublic = function (teamId, cb) { common.getEdPublic = function (teamId, cb) {
postMessage("GET", { postMessage("GET", {
teamId: teamId, key: teamId ? ['teams', teamId, 'keys', 'drive', 'edPublic'] : ['edPublic']
key: ['edPublic']
}, function (obj) { }, function (obj) {
cb(obj); cb(obj);
}); });

@ -4365,6 +4365,7 @@ define([
} }
var fmConfig = { var fmConfig = {
teamId: APP.team,
noHandlers: true, noHandlers: true,
onUploaded: function () { onUploaded: function () {
refresh(); refresh();

@ -34,7 +34,7 @@ define([
var origin = common.getMetadataMgr().getPrivateData().origin; var origin = common.getMetadataMgr().getPrivateData().origin;
var response = Util.response(); var response = Util.response();
var teamId = config.teamId; // XXX Teams file upload as a team var teamId = config.teamId;
var queue = File.queue = { var queue = File.queue = {
queue: [], queue: [],

Loading…
Cancel
Save