def METHOD_NAME(phase_factory, idea_factory, user):
    phase, _, project, item = setup_phase(
        phase_factory, idea_factory, phases.RatingPhase
    )
    anonymous, moderator, initiator = setup_users(project)
    assert project.is_public
    with freeze_phase(phase):
        assert not rules.has_perm(perm_name, anonymous, item)
        assert rules.has_perm(perm_name, user, item)
        assert rules.has_perm(perm_name, moderator, item)
        assert rules.has_perm(perm_name, initiator, item)