Skip to content

Commit

Permalink
fix(files/fileactions.js): Do not show copy action when user doesn't …
Browse files Browse the repository at this point in the history
…have update permissions

fixes #37729

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Apr 18, 2023
1 parent 0951398 commit f1fb803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
},
mime: 'all',
order: -25,
permissions: $('#isPublic').val() ? OC.PERMISSION_UPDATE : OC.PERMISSION_READ,
permissions: OC.PERMISSION_UPDATE,
iconClass: 'icon-external',
actionHandler: function (filename, context) {
var permissions = context.fileInfoModel.attributes.permissions;
Expand Down

0 comments on commit f1fb803

Please sign in to comment.