From 34bbb5b2cfba27a4a5b500bc2955ca5299a7f0e4 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 10 May 2023 20:20:46 +0800 Subject: [PATCH] ui: bug fix --- .../ui-default/templates/partials/problem_sidebar_normal.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-default/templates/partials/problem_sidebar_normal.html b/packages/ui-default/templates/partials/problem_sidebar_normal.html index ced017d3..bbdde373 100644 --- a/packages/ui-default/templates/partials/problem_sidebar_normal.html +++ b/packages/ui-default/templates/partials/problem_sidebar_normal.html @@ -61,7 +61,7 @@ {% endif %} - {% set _canViewSolution = handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_SOLUTION) or (handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_SOLUTION_ACCEPT) and tsdoc.status == STATUS.STATUS_ACCEPTED) %} + {% set _canViewSolution = handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_SOLUTION) or (handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_SOLUTION_ACCEPT) and psdoc.status == STATUS.STATUS_ACCEPTED) %} {% if handler.user.hasPerm(perm.PERM_VIEW_DISCUSSION) or _canViewSolution %} {% endif %}