Commit 008bfbe4 authored by Bui's avatar Bui Committed by GitHub

fix admin level for song edit

parent 6c02bf90
...@@ -253,7 +253,7 @@ def route_admin_songs_new_post(): ...@@ -253,7 +253,7 @@ def route_admin_songs_new_post():
@app.route('/admin/songs/<int:id>', methods=['POST']) @app.route('/admin/songs/<int:id>', methods=['POST'])
@admin_required(level=100) @admin_required(level=50)
def route_admin_songs_id_post(id): def route_admin_songs_id_post(id):
song = db.songs.find_one({'id': id}) song = db.songs.find_one({'id': id})
if not song: if not song:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment