Browse Source

Correction de #20

pull/12/head
Dark-Storm 9 months ago
parent
commit
2d0bce5d75
Signed by: Dark-Storm <l.gatin@neuf.fr> GPG Key ID: F61F10FA138E797C
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      app/routes/admin.py
  2. 1
    0
      assets/privs.txt

+ 2
- 2
app/routes/admin.py View File

@@ -10,7 +10,7 @@ from app.utils.render import render
from app import app, db

@app.route('/admin', methods=['GET', 'POST'])
@priv_required('access-admin-board')
@priv_required('access-admin-panel')
def adm():
return render('admin/index.html')

@@ -45,7 +45,7 @@ default_groups = [
]

@app.route('/admin/groups', methods=['GET', 'POST'])
@priv_required('access-admin-board')
@priv_required('access-admin-panel')
def adm_groups():
class GroupRegenerationForm(FlaskForm):
submit = SubmitField('Régénérer les groupes, privilèges, et comptes communs')

+ 1
- 0
assets/privs.txt View File

@@ -36,5 +36,6 @@ Miscellaenous:
community-login Automatically login as a community account

Administration panel:
access-admin-panel Administration panel of website
edt-account Edit details of any account
delete-account Remove member accounts

Loading…
Cancel
Save