Skip to content

Commit

Permalink
Do not display Profile when the user is admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mudongliang committed May 13, 2024
1 parent f8f415a commit ee4cc5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dojo_theme/templates/components/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
{{ navitem("管理面板", url_for("admin.view"), "fa-wrench") }}
{% endif %}

{% if not is_admin() %}
{{ navitem("简介", url_for("pwncollege_users.view_self"), "fa-user-circle") }}
{% endif %}
{{ navitem("设置", url_for("views.settings"), "fa-cogs") }}
{{ navitem("注销", url_for("auth.logout"), "fa-sign-out-alt", shrink=True) }}

Expand Down

0 comments on commit ee4cc5e

Please sign in to comment.