ui: only insert login dialog when not logged in

This commit is contained in:
undefined committed 2021-11-26 22:48:25 +08:00
1 parent 1458d3f13b
commit 7cdd542ed1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.26.21",
"version": "4.26.22",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -10,5 +10,5 @@
</div>
{% include "partials/footer.html" %}
</div>
{% if UserContext %}{% include "partials/login_dialog.html" %}{% endif %}
{% if UserContext and not handler.user._id %}{% include "partials/login_dialog.html" %}{% endif %}
{% endblock %}