class SetupSectionAccessibilityHelper {

    public SectionAccess canEditSpendProfileSection(OrganisationResource userOrganisation, Long organisationIdFromUrl) {
        if (setupProgressChecker.isOfflineOrWithdrawn()) {
            return NOT_ACCESSIBLE;
        }

        if (canAccessSpendProfileSection(userOrganisation) == NOT_ACCESSIBLE) {
            return NOT_ACCESSIBLE;
        } else if (isFromOwnOrganisation(userOrganisation, organisationIdFromUrl)) {
            return ACCESSIBLE;
        } else {
            return fail("Unable to edit Spend Profile section as user does not belong to this organisation");
        }
    }

    public  SetupSectionAccessibilityHelper(ProjectTeamStatusResource projectTeamStatus);

}