mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
playlist: when lacking perms, s/edit/view/
This commit is contained in:
parent
dc3b7a2720
commit
4195762d2a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue