mirror of
https://github.com/koel/koel
synced 2024-11-10 22:54:16 +00:00
Authorize playlist before downloading
This commit is contained in:
parent
970981ccc1
commit
44e184454c
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ class PlaylistController extends Controller
|
|||
*/
|
||||
public function download(Request $request, Playlist $playlist)
|
||||
{
|
||||
$this->authorize('owner', $playlist);
|
||||
|
||||
return response()->download(Download::from($playlist));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue