def METHOD_NAME(client, module, user2):
    module_publish_url = reverse(
        "a4dashboard:module-publish", kwargs={"module_slug": module.slug}
    )
    organisation = module.project.organisation
    organisation.initiators.add(user2)
    client.login(username=user2, password="password")
    response = client.post(module_publish_url, {"referrer": "refurl"})
    assert response.status_code == 302
    assert response["location"] == "refurl"
    response = client.post(module_publish_url, {}, HTTP_REFERER="refurl")
    assert response.status_code == 302
    assert response["location"] == "refurl"
    response = client.post(module_publish_url, {})
    assert redirect_target(response) == "project-edit"