diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-31 17:39:19 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-31 17:40:11 +0200 |
commit | 790d92502447bcefeac4a140f79975bd11aefe58 (patch) | |
tree | b80a6cf2f28b48ee86875a12789b6cb71314596b /apps/files | |
parent | b17508adf5f881c47e5c07256b2deee98f240442 (diff) | |
download | nextcloud-server-790d92502447bcefeac4a140f79975bd11aefe58.tar.gz nextcloud-server-790d92502447bcefeac4a140f79975bd11aefe58.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')
-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 93d342ed391..579040d8d60 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -722,7 +722,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) { |