Added Roles & Capabilities page to user settings

Thanks @fsiddi for helping with the explanatory text.
This commit is contained in:
2018-01-25 12:25:16 +01:00
parent 0a0c47205f
commit 6a17949fdf
4 changed files with 50 additions and 0 deletions

View File

@@ -35,3 +35,10 @@ def profile():
flash(message)
return render_template('users/settings/profile.html', form=form, title='profile')
@blueprint.route('/roles')
@login_required
def roles():
"""Show roles and capabilties of the current user."""
return render_template('users/settings/roles.html', title='roles')