From 9a4f2f1782ec039c51df7b6f8fa9618677c40bd6 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 7 Sep 2023 16:11:14 -0700 Subject: [PATCH] fix: Hide set reminder action on public shares Signed-off-by: Christopher Ng (cherry picked from commit 8031ee862a014937cd9a9e2d6fcda0b9bc5a201b) --- apps/files/js/fileactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index c19440b8209..ec09ec1bb8c 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -721,7 +721,7 @@ icon: function(_filename, _context) { return OC.imagePath('files_reminders', 'alarm.svg') }, - permissions: OC.PERMISSION_READ, + permissions: $('#isPublic').val() ? null : OC.PERMISSION_READ, actionHandler: function(_filename, _context) {}, }); } -- 2.39.5