From c2ebe9631300b54f60bf3fd12a4eae526a84d3de Mon Sep 17 00:00:00 2001 From: sentriz Date: Wed, 5 Nov 2025 11:40:43 -0300 Subject: [PATCH] feat(subsonic): allow non admins to download podcast episodes closes #623 --- server/ctrlsubsonic/handlers_podcast.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/ctrlsubsonic/handlers_podcast.go b/server/ctrlsubsonic/handlers_podcast.go index 3af4852..c1df03d 100644 --- a/server/ctrlsubsonic/handlers_podcast.go +++ b/server/ctrlsubsonic/handlers_podcast.go @@ -44,10 +44,6 @@ func (c *Controller) ServeGetNewestPodcasts(r *http.Request) *spec.Response { } func (c *Controller) ServeDownloadPodcastEpisode(r *http.Request) *spec.Response { - user := r.Context().Value(CtxUser).(*db.User) - if !user.IsAdmin { - return spec.NewError(50, "user not admin") - } params := r.Context().Value(CtxParams).(params.Params) id, err := params.GetID("id") if err != nil || id.Type != specid.PodcastEpisode {