aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/users/user_profile_page.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html
index 53afd57..e4f9ff0 100644
--- a/app/templates/users/user_profile_page.html
+++ b/app/templates/users/user_profile_page.html
@@ -7,7 +7,7 @@
{% block content %}
<div class="box box_grey">
- <h2>{{ user.username }}</h2>
+ <h2>{{ user.display_name }}</h2>
<table>
<tr>
@@ -73,7 +73,9 @@
<div class="col-sm-6 col-md-5 col-lg-4">
{{ form.hidden_tag() }}
- {{ render_field(form.display_name, tabindex=230) }}
+ {% if user.checkPerm(current_user, "CHANGE_DNAME") %}
+ {{ render_field(form.display_name, tabindex=230) }}
+ {% endif %}
{% if user.checkPerm(current_user, "CHANGE_EMAIL") %}
{{ render_field(form.email, tabindex=240) }}