diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-31 17:39:19 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-31 18:49:30 +0000 |
commit | f64444bf607c57cef2b74807cf66de485a864c71 (patch) | |
tree | 02b191e973d403ed52de27248fbc6bc07adcbed5 /apps | |
parent | 656828a8bb65bf9c3234fcc3533e54a6a7630837 (diff) | |
download | nextcloud-server-f64444bf607c57cef2b74807cf66de485a864c71.tar.gz nextcloud-server-f64444bf607c57cef2b74807cf66de485a864c71.zip |
fix(files): do not show legacy `edit locally` action on public pages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index ec09ec1bb8c..52bf0eae7b9 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -726,7 +726,7 @@ }); } - if (!/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)) { + if (!/Android|iPhone|iPad|iPod/i.test(navigator.userAgent) && !!window.oc_current_user) { this.registerAction({ name: 'EditLocally', displayName: function(context) { |