fix(files): do not show legacy `edit locally` action on public pages

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/46932/head
skjnldsv 2024-07-31 17:39:19 +07:00 committed by backportbot[bot]
parent 656828a8bb
commit f64444bf60
1 changed files with 1 additions and 1 deletions

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