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

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-07-31 17:39:19 +02:00 committed by backportbot[bot]
parent 656828a8bb
commit f64444bf60

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