summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-09-07 16:11:14 -0700
committerChristopher Ng <chrng8@gmail.com>2023-09-07 16:15:29 -0700
commit9a4f2f1782ec039c51df7b6f8fa9618677c40bd6 (patch)
treea2ba2670cab4686dd14215a68810dd2581dd6283 /apps/files/js/fileactions.js
parent1e8a067b930a7b7e90d75aef6bc272772c7ab181 (diff)
downloadnextcloud-server-9a4f2f1782ec039c51df7b6f8fa9618677c40bd6.tar.gz
nextcloud-server-9a4f2f1782ec039c51df7b6f8fa9618677c40bd6.zip
fix: Hide set reminder action on public shares
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 8031ee862a014937cd9a9e2d6fcda0b9bc5a201b)
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
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) {},
});
}