def METHOD_NAME(self):
    # Given
    project = self.create_project('Project 1', public=False)
    org = self.create_organisation('Org')
    hierarchy = self.create_project_hierarchy(org, project, 2)
    user = self.create_user('foo@bar.com', 'password')
    self.make_org_project_editor(user, org)
    self.c.login(username=user.email, password='password')
    data = {'max_depth': 3}
    # When
    response = self.c.patch(
        '/rest/v1/raw_project_hierarchy/{}/?format=json'.format(hierarchy.pk),
        json.dumps(data),
        content_type='application/json')
    # Then
    self.assertEqual(response.status_code, 403)