Skip to content

Commit

Permalink
Check user before syncing incase impersonate is in use
Browse files Browse the repository at this point in the history
Check user before syncing incase impersonate is in use
  • Loading branch information
mdusher authored May 15, 2019
2 parents 7af800c + fe8914c commit 6b02edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6b02edf

Please sign in to comment.