Merge pull request #46932 from nextcloud/backport/46927/stable28

[stable28] fix(files): do not show legacy `edit locally` action on public pages
This commit is contained in:
John Molakvoæ 2024-07-31 22:18:25 +02:00 committed by GitHub
commit 2b83d9d6bf
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) {