File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -192,17 +192,6 @@ def get_context_data(self, **kwargs):
192
192
allocations = self .object .allocation_set .exclude (status__name = 'Merged' ).prefetch_related ('resources' ).order_by ('-pk' )
193
193
allocation_history_records = self .return_status_change_records (allocations )
194
194
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
- # )
206
195
allocations = allocations .filter (
207
196
status__name__in = ['Active' , 'Paid' , 'Ready for Review' ,'Payment Requested' ]
208
197
).distinct ().order_by ('-end_date' )
You can’t perform that action at this time.
0 commit comments