class OrganisationPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "ADD_NEW_ORGANISATION", description = "Allowed to add a new organisation")
    public boolean addNewOrganisation(ApplicationCompositeId applicationCompositeId, UserResource loggedInUser) {
        return isCollaborationAllowed(applicationCompositeId.id()) &&
                isLeadApplicant(applicationCompositeId.id(), loggedInUser) &&
                applicationNotYetSubmitted(applicationCompositeId.id());
    }

}