Prevent sharing a pad with a team from this team's drive

This commit is contained in:
yflory
2019-09-13 16:55:48 +02:00
parent b76cef9660
commit 799d93eb48
3 changed files with 15 additions and 6 deletions

View File

@@ -766,6 +766,7 @@ define([
var teamsData = Util.tryParse(JSON.stringify(privateData.teams)) || {};
var teams = {};
Object.keys(teamsData).forEach(function (id) {
if (config.teamId && config.teamId === id) { return; }
var t = teamsData[id];
teams[t.edPublic] = {
notifications: true,