mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix PERM_VIEW_DISPLAYNAME on user_detail (#705)
This commit is contained in:
1 parent
7f6d798b54
commit
3a28faff25
1 file changed
+1
-1
@@ -20,7 +20,7 @@
|
|||||||
<div class="media__body profile-header__main">
|
<div class="media__body profile-header__main">
|
||||||
<h1>
|
<h1>
|
||||||
{{ udoc['uname'] }}
|
{{ udoc['uname'] }}
|
||||||
{% if udoc.displayName %}<small>({{ udoc['displayName'] }})</small>{% endif %}
|
{% if handler.user.hasPerm(perm.PERM_VIEW_DISPLAYNAME) and udoc.displayName %}<small>({{ udoc['displayName'] }})</small>{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
{{ _('UID') }}: {{ udoc['_id'] }},
|
{{ _('UID') }}: {{ udoc['_id'] }},
|
||||||
|
|||||||
Reference in new issue
Block a user