Skip to content

Commit 69efd08

Browse files
committed
remove unnecessary ProjectDetail allocation table permission
1 parent f042a87 commit 69efd08

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

coldfront/core/project/views.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,6 @@ def get_context_data(self, **kwargs):
192192
allocations = self.object.allocation_set.exclude(status__name='Merged').prefetch_related('resources').order_by('-pk')
193193
allocation_history_records = self.return_status_change_records(allocations)
194194

195-
if not self.request.user.is_superuser and not self.request.user.has_perm(
196-
'allocation.can_view_all_allocations'
197-
):
198-
if self.object.status.name in ['Active', 'New']:
199-
allocations = allocations.filter(
200-
Q(project__projectuser__user=self.request.user)
201-
)
202-
# if not self.object.has_perm(self.request.user, ProjectPermission.DATA_MANAGER):
203-
# allocations = allocations.filter(
204-
# Q(allocationuser__user=self.request.user)
205-
# )
206195
allocations = allocations.filter(
207196
status__name__in=['Active', 'Paid', 'Ready for Review','Payment Requested']
208197
).distinct().order_by('-end_date')

0 commit comments

Comments
 (0)