Merge pull request #46933 from nextcloud/backport/46927/stable29

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

View file

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