mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
Fix: List only public playlists
This commit is contained in:
parent
b53c33f92c
commit
41e386e6ad
@ -27,7 +27,7 @@ from supysonic.managers.user import UserManager
|
||||
@app.route('/playlist')
|
||||
def playlist_index():
|
||||
return render_template('playlists.html', mine = store.find(Playlist, Playlist.user_id == uuid.UUID(session.get('userid'))),
|
||||
others = store.find(Playlist, Playlist.user_id != uuid.UUID(session.get('userid'))),
|
||||
others = store.find(Playlist, Playlist.user_id != uuid.UUID(session.get('userid')), Playlist.public == True),
|
||||
admin = UserManager.get(store, session.get('userid'))[1].admin)
|
||||
|
||||
@app.route('/playlist/<uid>')
|
||||
|
Loading…
Reference in New Issue
Block a user