mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: allow extra user private & public fields (#1059)
This commit is contained in:
1 parent
8f2c5a17cd
commit
3a25e4e53f
11 files changed
+61
-46
No files matched your search
@@ -20,7 +20,7 @@
|
||||
<div class="media__body profile-header__main">
|
||||
<h1>
|
||||
{{ udoc['uname'] }}
|
||||
{% if handler.user.hasPerm(perm.PERM_VIEW_DISPLAYNAME) and udoc.displayName %}<small>({{ udoc['displayName'] }})</small>{% endif %}
|
||||
{% if handler.user.hasPerm(perm.PERM_VIEW_USER_PRIVATE_INFO) and udoc.displayName %}<small>({{ udoc['displayName'] }})</small>{% endif %}
|
||||
</h1>
|
||||
<p>
|
||||
{{ _('UID') }}: {{ udoc['_id'] }},
|
||||
|
||||
Reference in new issue
Block a user