directory – Is there a way to create folders restricted to specific users to open?


I am working on a business website where users can purchase downloadable report packages. These reports come with multiple files (4 total) for the user to download after they purchase. There is a page on the site where these documents are supposed to show up for them to download after they purchase them. As of right now, I have had to individually code the restricted user access to each of the included 4 files separately. I have been doing this by adding all of the users’ user_ids to a “user_id = …” code and specifying the file with “wpdm_package id = …”. And I have to do this 4 times for each different file. Basically, I want to know if there is a way to restrict access to an entire folder that contains all 4 files inside of it. Thank you!

sachib620 5 months 2022-06-19T21:19:36-05:00 0 Answers 0 views 0

Leave an answer