From 6c901a402e3f70eece3c3168758c0b09abdc62fe Mon Sep 17 00:00:00 2001
From: Sandeep Chauhan <sandeepsajan0@gmail.com>
Date: Wed, 17 Apr 2024 19:27:46 +0530
Subject: [PATCH] Hide Submission status count summary for reviewers (#3870)

Fixes #3861
---
 hypha/apply/funds/templates/funds/submissions.html | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/hypha/apply/funds/templates/funds/submissions.html b/hypha/apply/funds/templates/funds/submissions.html
index ba0d3ec28..ba0d3bcac 100644
--- a/hypha/apply/funds/templates/funds/submissions.html
+++ b/hypha/apply/funds/templates/funds/submissions.html
@@ -23,12 +23,14 @@
     {% endadminbar %}
 
     <div class="wrapper wrapper--large wrapper--inner-space-medium">
-        <div hx-get="{% url 'apply:submissions:applications_status_counts' %}" hx-trigger="load delay:50">
-            <div class="animate-pulse min-h-50">
-                <div class="w-full h-16 bg-gray-200 mb-5"></div>
-                <div class="w-full h-6 bg-gray-200 mb-5"></div>
+        {% if request.user.is_apply_staff %}
+            <div hx-get="{% url 'apply:submissions:applications_status_counts' %}" hx-trigger="load delay:50">
+                <div class="animate-pulse min-h-50">
+                    <div class="w-full h-16 bg-gray-200 mb-5"></div>
+                    <div class="w-full h-6 bg-gray-200 mb-5"></div>
+                </div>
             </div>
-        </div>
+        {% endif %}
 
         {% block table %}
             {% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term use_search=True filter_action=filter_action use_batch_actions=True filter_classes="filters-open" show_archive=show_archive %}
-- 
GitLab