Fix invalid file ID in the drive

This commit is contained in:
yflory
2019-06-24 12:17:08 +02:00
parent bd190dc73b
commit f5858f524d
3 changed files with 8 additions and 2 deletions

View File

@@ -729,6 +729,7 @@ define([
if (type === "pin") {
return function (fileId) {
var data = userObject.getFileData(fileId);
if (!data) { return; }
// Don't pin pads owned by someone else
if (_ownedByOther(Env, data.owners)) { return; }
// Don't push duplicates