Skip to content

Commit

Permalink
Merge pull request #46927 from nextcloud/fix/edit-locally-ppublic
Browse files Browse the repository at this point in the history
fix(files): do not show legacy `edit locally` action on public pages
  • Loading branch information
skjnldsv committed Jul 31, 2024
2 parents 8b238a2 + 790d925 commit 0b3fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b3fa42

Please sign in to comment.