From 155d5682548d186ad8569f5e687288144d344a5f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 7 Oct 2024 16:59:12 +0200 Subject: [PATCH] Enh/fix admin download (#1382) * Fixed admin download --- web/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/watch.go b/web/watch.go index 08ed26005..2fc636288 100644 --- a/web/watch.go +++ b/web/watch.go @@ -34,7 +34,7 @@ func (r mainRoutes) WatchPage(c *gin.Context) { } tumLiveContext := foundContext.(tools.TUMLiveContext) data.IndexData = NewIndexData() - if tumLiveContext.Course.DownloadsEnabled && tumLiveContext.Stream.IsDownloadable() { + if (tumLiveContext.Course.DownloadsEnabled || tumLiveContext.User.IsAdminOfCourse(*tumLiveContext.Course)) && tumLiveContext.Stream.IsDownloadable() { err = tools.SetSignedPlaylists(tumLiveContext.Stream, tumLiveContext.User, true) } else { err = tools.SetSignedPlaylists(tumLiveContext.Stream, tumLiveContext.User, false)