mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08: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