diff --git a/api/v1/files_import.go b/api/v1/files_import.go index 5a1a6000cc4c3a51ead05935b6912b67ca546816..0d3cd31d2259909a88bd694f73a6e742b53cd9e5 100644 --- a/api/v1/files_import.go +++ b/api/v1/files_import.go @@ -54,14 +54,15 @@ func (api *API) ListImportsOfShow(c *gin.Context) { } } } else { - if authorized, sess := authorizeRequestPrivilegedOrEntitled(c); !authorized { - return - } else { - if sess.Privileged { - showIDs = sess.PublicShows + s := getAuthSession(c.Request) + if s != nil { + shows, err := api.store.ListShows() + if err != nil { + c.JSON(http.StatusInternalServerError, ErrorResponse{Error: err.Error()}) + return } - if sess.Entitled { - showIDs = sess.Shows + for _, show := range shows { + showIDs = append(showIDs, show.ID) } } }