Authorize playlist before downloading

This commit is contained in:
An Phan 2016-06-04 21:29:45 +08:00
parent 970981ccc1
commit 44e184454c

View file

@ -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));
}
}