Ejemplo n.º 1
0
 def get_obj_permission_context(self, obj):
     context = super().get_obj_permission_context(obj)
     context.extend([
         ObjectStatusCondition(obj),
         TPMStaffMemberCondition(obj.tpm_partner, self.request.user),
         TPMVisitUNICEFFocalPointCondition(obj, self.request.user),
         TPMVisitTPMFocalPointCondition(obj, self.request.user),
     ])
     return context
Ejemplo n.º 2
0
 def get_obj_permission_context(self, obj):
     context = super().get_obj_permission_context(obj)
     context.extend([
         ObjectStatusCondition(obj),
         ActionPointAuthorCondition(obj, self.request.user),
         ActionPointAssignedByCondition(obj, self.request.user),
         ActionPointAssigneeCondition(obj, self.request.user),
     ])
     return context
Ejemplo n.º 3
0
 def get_obj_permission_context(self, obj):
     context = super().get_obj_permission_context(obj)
     context.extend([
         ObjectStatusCondition(obj),
         AuditStaffMemberCondition(obj.agreement.auditor_firm,
                                   self.request.user),
         EngagementStaffMemberCondition(obj, self.request.user),
     ])
     return context