]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Hide set reminder action on public shares 40342/head
authorChristopher Ng <chrng8@gmail.com>
Thu, 7 Sep 2023 23:11:14 +0000 (16:11 -0700)
committerChristopher Ng <chrng8@gmail.com>
Thu, 7 Sep 2023 23:15:29 +0000 (16:15 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 8031ee862a014937cd9a9e2d6fcda0b9bc5a201b)

apps/files/js/fileactions.js

index c19440b8209ee2c817ff9493cd0b5e0bfa9ee2fe..ec09ec1bb8c57224f22891d6be7fb1bb8762a312 100644 (file)
                                        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) {},
                                });
                        }