From 6c8f6b32995911d7fa9bda64c3986be66de4d366 Mon Sep 17 00:00:00 2001 From: sentriz Date: Sun, 4 Dec 2022 22:02:48 +0000 Subject: [PATCH] enable download role for all users since we don't have any permission checks on download.view anyway closes #264 --- server/ctrlsubsonic/handlers_common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/ctrlsubsonic/handlers_common.go b/server/ctrlsubsonic/handlers_common.go index e23430d..3121016 100644 --- a/server/ctrlsubsonic/handlers_common.go +++ b/server/ctrlsubsonic/handlers_common.go @@ -131,6 +131,7 @@ func (c *Controller) ServeGetUser(r *http.Request) *spec.Response { AdminRole: user.IsAdmin, JukeboxRole: c.Jukebox != nil, PodcastRole: c.Podcasts != nil, + DownloadRole: true, ScrobblingEnabled: hasLastFM || hasListenBrainz, Folder: []int{1}, }