mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: disable ban check for builtin user
This commit is contained in:
1 parent
5a934d8a2f
commit
b606ab2852
1 file changed
+1
-1
@@ -32,7 +32,7 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>{{ _('Solved {0} problems, RP: {1} (No. {2})').format(udoc.nAccept|default(0), udoc['rp']|default(0.0)|round(2), udoc['rank']|default('?')) }}</p>
|
||||
{% if not udoc.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
||||
{% if udoc._id != 1 and not udoc.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
||||
<p>{{ _('This user was banned.') }}</p>
|
||||
{% endif %}
|
||||
<div class="profile-header__contact-bar">
|
||||
|
||||
Reference in new issue
Block a user