From 6c5f37b7bc20b93a6cb47a99ff28aa0e4b216d19 Mon Sep 17 00:00:00 2001 From: Paul Kerschen Date: Thu, 13 Jul 2017 13:46:49 -0700 Subject: [PATCH] COL-1113 Fix asset ownership check when adding to whiteboard --- node_modules/col-whiteboards/lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/col-whiteboards/lib/api.js b/node_modules/col-whiteboards/lib/api.js index 244c99c8..bc92eabd 100644 --- a/node_modules/col-whiteboards/lib/api.js +++ b/node_modules/col-whiteboards/lib/api.js @@ -896,7 +896,7 @@ var whiteboardAddActivity = function(socket, elements, callback) { // If the asset is associated with no users except the user performing the activity, skip activity creation. var assetHasOtherCreators = _.find(asset.users, function(user) { - user.id !== socket.ctx.user.id; + return user.id !== socket.ctx.user.id; }); if (!assetHasOtherCreators) {