Do not expose internal playlists in the UI

This commit is contained in:
emeric
2024-12-18 21:30:55 +01:00
parent 080a068c80
commit 079acbdc17
+1 -1
View File
@@ -81,7 +81,7 @@ namespace lms::ui
auto transaction{ LmsApp->getDbSession().createReadTransaction() }; auto transaction{ LmsApp->getDbSession().createReadTransaction() };
const db::TrackList::pointer trackList{ db::TrackList::find(LmsApp->getDbSession(), *trackListId) }; const db::TrackList::pointer trackList{ db::TrackList::find(LmsApp->getDbSession(), *trackListId) };
if (!trackList) if (!trackList || trackList->getType() != db::TrackListType::PlayList)
throw TrackListNotFoundException{}; throw TrackListNotFoundException{};
if (trackList->getUserId().isValid() if (trackList->getUserId().isValid()