aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-09-08 10:54:35 -0700
committerGitHub <noreply@github.com>2023-09-08 10:54:35 -0700
commite21f1a9b6d6e9c1151f5c83f3c049144e211fe20 (patch)
tree863d100053127cc97aeb295655b9cc764203459b
parentebf24225085174427bf7ff4515ce27f9e83f4cb9 (diff)
parent8031ee862a014937cd9a9e2d6fcda0b9bc5a201b (diff)
downloadnextcloud-server-e21f1a9b6d6e9c1151f5c83f3c049144e211fe20.tar.gz
nextcloud-server-e21f1a9b6d6e9c1151f5c83f3c049144e211fe20.zip
Merge pull request #40341 from nextcloud/fix/hide-set-reminder-public
fix: Hide set reminder action on public shares
-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) {},
});
}