From d98051e59561bd81181e64b459a2fe642d91aaf9 Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Mon, 15 Dec 2025 18:02:26 -0500 Subject: [PATCH] project managers should be able to see allocations Signed-off-by: Sajid Ali modified: coldfront/core/project/views.py modified: coldfront/core/project/views.py --- coldfront/core/project/views.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/coldfront/core/project/views.py b/coldfront/core/project/views.py index def15489b3..ed0e6a7625 100644 --- a/coldfront/core/project/views.py +++ b/coldfront/core/project/views.py @@ -203,12 +203,11 @@ def get_context_data(self, **kwargs): "Active", ] ) - & Q(allocationuser__user=self.request.user) - & Q( - allocationuser__status__name__in=[ - "Active", - ] + & ( + Q(allocationuser__user=self.request.user) + & Q(allocationuser__status__name__in=["Active", "PendingEULA"]) ) + | Q(project__projectuser__role__name="Manager") ) .distinct() .order_by("-end_date")