class ApplicationInvitePermissionRules {

    @PermissionRule(value = "DELETE", description = "collaborator can delete invite as long as its not their own.")
    public boolean collaboratorCanDeleteNotOwnInvite(final ApplicationInviteResource invite, final UserResource user) {
        return applicationIsEditableById(invite.getApplication()) && isNotOwnInvite(invite, user) && isCollaboratorOnInvite(invite, user);
    }

}