mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02:00
fix admin level for song edit
This commit is contained in:
parent
6c02bf9049
commit
008bfbe418
2
app.py
2
app.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user