Merge pull request #21771 from resilient-tech/remove-unused-var

This commit is contained in:
Sagar Vora 2023-07-23 09:42:14 +00:00 committed by GitHub
commit 7fb000d6ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,6 @@ def download_backup(path):
def download_private_file(path: str) -> Response:
"""Checks permissions and sends back private file"""
can_access = False
files = frappe.get_all("File", filters={"file_url": path}, fields="*")
# this file might be attached to multiple documents
# if the file is accessible from any one of those documents