class ApplicationInvitePermissionRules {

    @PermissionRule(value = "SAVE", description = "collaborator can save invite to the application for their organisation")
    public boolean collaboratorCanSaveInviteToApplicationForTheirOrganisation(final ApplicationInviteResource invite, final UserResource user) {
        return applicationIsEditableById(invite.getApplication()) && isCollaboratorOnInvite(invite, user);
    }

}