---
id: gk-gravityexport-download-can-download
title: "Filter - gk/gravityexport/download/can-download"
sidebar_label: "gk/gravityexport/download/can-download"
tags:
  - "2.7.6"
---

# Filter: gk/gravityexport/download/can-download

Modifies whether the current user may download a secured export.

Runs only for secured GravityExport Lite download URLs; a public download URL is always served. Downloads that other GravityExport add-ons serve through their own URLs are checked by those add-ons. Return `true` to allow a user who lacks the `gravityforms_export_entries` capability, or `false` to refuse one who has it. It can run more than once for one download (GravityExport asks it again for its Filters download URLs), so a callback should give the same answer each time.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $can_download | `bool` | Whether the user has the <code>gravityforms_export_entries</code> capability. |
| $feed | `array` | The feed being downloaded; an empty array when the form has no export feed. |
| $user_id | `int` | The current user's ID, or <code>0</code> for a visitor who is not logged in. |

### Since

- 2.7.6

### Source

Defined in `src/GFExcel.php` at line 276

