Do not expose internal playlists in the UI
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user