<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_parent_object_permissions(self, request, obj):
 """ Check if the request should be permitted for a given parent object. Raises an appropriate exception if the request is not permitted. """

        for permission in self.get_parent_permissions():
            if not permission.has_object_permission(request, self, obj):
                self.permission_denied(request)