fix: Hide set reminder action on public shares

Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 8031ee862a)
This commit is contained in:
Christopher Ng 2023-09-07 16:11:14 -07:00
parent 1e8a067b93
commit 9a4f2f1782

View file

@ -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) {},
});
}