Merge pull request #46927 from nextcloud/fix/edit-locally-ppublic

fix(files): do not show legacy `edit locally` action on public pages
This commit is contained in:
John Molakvoæ 2024-07-31 20:48:26 +02:00 committed by GitHub
commit 0b3fa42dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {