class SetupSectionsPermissionRules {

    @PermissionRule(value = "ACCESS_PARTNER_PROJECT_LOCATION_PAGE", description = "A partner can access the partner project location " +
            "page when their Companies House data is complete or not required, and the Monitoring Officer has not yet been assigned")
    public boolean partnerCanAccessProjectLocationPage(ProjectCompositeId projectCompositeId, UserResource user) {
        boolean partnerProjectLocationRequired = isPartnerProjectLocationRequired(projectCompositeId);
        return doSectionCheck(projectCompositeId.id(), user,
                (setupSectionAccessibilityHelper, organisation) -> setupSectionAccessibilityHelper.canAccessPartnerProjectLocationPage(organisation, partnerProjectLocationRequired));
    }

}