class OrganisationPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "VIEW_ADD_ORGANISATION_PAGE", description = "Allowed to view the add organisation page")
    public boolean viewAddOrganisationPage(ApplicationCompositeId applicationCompositeId, UserResource loggedInUser) {
        return isCollaborationAllowed(applicationCompositeId.id()) &&
                isLeadApplicant(applicationCompositeId.id(), loggedInUser) &&
                applicationNotYetSubmitted(applicationCompositeId.id());
    }

}