fix admin level for song edit

This commit is contained in:
Bui 2020-04-06 06:36:08 +01:00 committed by GitHub
parent 6c02bf9049
commit 008bfbe418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.py
View File

@ -253,7 +253,7 @@ def route_admin_songs_new_post():
@app.route('/admin/songs/<int:id>', methods=['POST'])
@admin_required(level=100)
@admin_required(level=50)
def route_admin_songs_id_post(id):
song = db.songs.find_one({'id': id})
if not song: