From fe8914cce152eb1cf01264c75ed30a0cb586c630 Mon Sep 17 00:00:00 2001 From: Michael Usher Date: Wed, 15 May 2019 04:48:11 +0000 Subject: [PATCH] Check user before syncing incase impersonate is in use --- js/clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/clipboard.js b/js/clipboard.js index f1577b1..12d7ab3 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -196,7 +196,7 @@ $(document).ready(function () { new_clipboard = JSON.parse(event.newValue); local_clipboard = JSON.stringify(getClipboard()); if (event.newValue && event.newValue !== local_clipboard) { - if (new_clipboard && new_clipboard.hasOwnProperty('operation')) { + if (new_clipboard && new_clipboard.hasOwnProperty('operation') && OC.currentUser == new_clipboard.user) { setClipboard(new_clipboard.operation, new_clipboard.directory, new_clipboard.files); } else { clearClipboard();