Do we need to grant 'view private files' permission to authenticated users to be able to download files after purchase?

Created on 20 June 2024, 7 days ago

Problem/Motivation

I have an e-commerce website. I used the Commerce File module to upload pdf files for my products. But I have a problem: after paying, the authenticated user cannot download the file.

I was able to download the purchased file after granting these permissions to the authenticated user role:
- File entity: Document: download any document file
- File entity: View private files

But I noticed an issue where authenticated users can view files in private folders that have been uploaded not from the Commerce File field

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

2.1

Component

Documentation

Created by

πŸ‡»πŸ‡³Vietnam thiennd090395

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024