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:50:50 +0000 |
commit | 691f33ba8ff0e44bcff5135f8f97d1dd494f8540 (patch) | |
tree | 7c675f44ca27fefb3e1e509b7ba5d5a102d6ba90 /apps/files/js | |
parent | 178e5320ab56cc4ba058f165dbfad78c4f50d3e2 (diff) | |
download | nextcloud-server-691f33ba8ff0e44bcff5135f8f97d1dd494f8540.tar.gz nextcloud-server-691f33ba8ff0e44bcff5135f8f97d1dd494f8540.zip |
fix(files): do not show legacy `edit locally` action on public pages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js')
-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) { |