admin: fixed priv name on polls route

This commit is contained in:
Darks 2023-06-07 21:55:40 +02:00
parent 6519cf4a6a
commit fccd0e5b84
Signed by untrusted user: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from app.utils.render import render
from app.models.poll import Poll
@app.route('/admin/sondages', methods=['GET'])
@priv_required('access-admin-panel')
@priv_required('misc.admin-panel')
def adm_polls():
polls = Poll.query.order_by(Poll.end.desc()).all()