Playlist editability with new playlist format

This commit is contained in:
James Barnsley
2018-09-14 16:11:55 +12:00
parent d733f5554c
commit f66b33c3e4
10 changed files with 30 additions and 28 deletions

View File

@ -673,7 +673,7 @@ const CoreMiddleware = (function(){
case 'spotify':
if (store.getState().spotify.authorization && store.getState().spotify.me){
playlist.can_edit = (helpers.getFromUri('playlistowner',playlist.uri) == store.getState().spotify.me.id)
playlist.can_edit = (playlist.owner.id == store.getState().spotify.me.id)
}
}