Skip to content

Commit

Permalink
Fix permissions and l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
leizh committed Jan 13, 2018
1 parent 2fcbba5 commit 027bb29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function update(blink) {

if (clipboard) {
var sameDirectory = clipboard.directory == $dir.val(),
noPermissions = !(permissions & OC.PERMISSION_WRITE),
noPermissions = !(permissions & OC.PERMISSION_CREATE),
disabled = noPermissions || sameDirectory,
title;
if (sameDirectory) title = t(appid, 'Unable to paste: the files come from this directory.')
Expand Down Expand Up @@ -155,9 +155,9 @@ function paste() {
message = data.messages[0];
} else {
if (clipboard.operation == 'cut') {
message = '<b>' + n(appid, "%n error occurred during the move:", "%n errors occurred during the move:", data.messages.length) + '</b>';
message = '<b>An error occurred during the move.</b>';
} else {
message = '<b>' + n(appid, "%n error occurred during the copy:", "%n errors occurred during the copy:", data.messages.length) + '</b>';
message = '<b>An error occurred during the copy.</b>';
}
message += '<p class="files_clipboard_error">';
for (var i = data.messages.length - 1; i >= 0; --i) message += data.messages[i] + '<br>';
Expand Down

0 comments on commit 027bb29

Please sign in to comment.