这个“注消”能隐藏吗?

这个“注消”能隐藏吗?好危险哦,要是不小心或被人恶意使用怎么?数据无价啊!

修改/seahub/seahub/profile/templates/profile/set_profile.html
删除:

<div class="setting-item" id="del-account">
    <h3>{% trans "Delete Account" %}</h3>
    <p class="txt-before-btn">{% trans "This operation will not be reverted. Please think twice!" %}</p>
    <button type="button" id="account-delete-btn">{% trans "Delete" %}</button>
    <form id="account-delete-form" class="hide" method="post" action="{% url 'delete_user_account' %}">{% csrf_token %}
        <input type="submit" value="{% trans "Delete" %}" class="submit" />
    </form>
</div>


<li class="tab" id="del-account-nav"><a href="#del-account">{% trans "Delete Account" %}</a></li>

建议官方控制台参数来控制能否使用这个功能,或者直接去掉。

每次升级运用 sed 干掉这部分代码:joy: