Skip to content

Commit

Permalink
fix(files): do not show legacy edit locally action on public pages
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Jul 31, 2024
1 parent b17508a commit 790d925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 790d925

Please sign in to comment.