Browse Source

fix(Playlists): when displaying a user's playlists, station playlists should not be shown

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 years ago
parent
commit
ded0c6deae
1 changed files with 4 additions and 2 deletions
  1. 4 2
      backend/logic/actions/playlists.js

+ 4 - 2
backend/logic/actions/playlists.js

@@ -375,7 +375,8 @@ export default {
 					const { orderOfPlaylists } = preferences;
 
 					const match = {
-						createdBy: userId
+						createdBy: userId,
+						type: "user"
 					};
 
 					// if a playlist order exists
@@ -448,7 +449,8 @@ export default {
 					const { orderOfPlaylists } = preferences;
 
 					const match = {
-						createdBy: session.userId
+						createdBy: session.userId,
+						type: "user"
 					};
 
 					// if non modifiable playlists should be shown as well