Skip to content

Commit

Permalink
Do not expose internal playlists in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
epoupon committed Dec 18, 2024
1 parent 080a068 commit 079acbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lms/ui/explore/TrackListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace lms::ui
auto transaction{ LmsApp->getDbSession().createReadTransaction() };

const db::TrackList::pointer trackList{ db::TrackList::find(LmsApp->getDbSession(), *trackListId) };
if (!trackList)
if (!trackList || trackList->getType() != db::TrackListType::PlayList)
throw TrackListNotFoundException{};

if (trackList->getUserId().isValid()
Expand Down

0 comments on commit 079acbd

Please sign in to comment.