Skip to content

Commit

Permalink
Enh/fix admin download (#1382)
Browse files Browse the repository at this point in the history
* Fixed admin download
  • Loading branch information
SebiWrn authored Oct 7, 2024
1 parent 91784c5 commit 155d568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 155d568

Please sign in to comment.