diff --git a/docs/index.rst b/docs/index.rst index 314c087..fc7120d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -126,6 +126,13 @@ The corresponding view would look like such:: def admin(): return render_template('admin/index.html') +And lastly, maybe you only want to show something in a template if a user has a +specific role:: + + {% if current_user.has_role('admin') %} + Admin Panel + {$ endif %} + API ___