diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index af007753..5fdb4659 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -7332,7 +7332,12 @@ function ev_load_m3u(e) { modal.confirm(L.mm_m3u, function () { load_m3u(url); }, - function () { window.location = url + '?edit'} + function () { + if (has(perms, 'write') && has(perms, 'delete')) + window.location = url + '?edit'; + else + showfile.show(url); + } ); return false; }