ThemeNcode Docs

Restrict All Uploads

Estimated reading: 2 minutes

On this page, you can set access options for all the files you’ve uploaded to your Media Library.

Settings on this page are used when a file doesn’t have access settings at an individual level or file type level.

Settings are pretty much the same as other tabs.

1. Require Login for this file: Check this if you want all files to be only accessible by Logged in users. Users who are not logged in will get a 404 error when they browse the file URL

2. Access Type: This setting is related to the next 2 settings (User Roles and Users). This field will tell those fields about what to do with their data.
If you choose to allow it here, the roles and users you assign on the next 2 fields will have access to all files.
If you choose to disallow here, the roles and users you assign on the next 2 fields won’t have access to all files.

3. Select User Roles: Select the roles that should or should not (based on the access type above) have access to all files

4. Select Users: Search and select the users that should or should not (based on the access type above) have access to all files. You can search by user’s id, name, email, etc.

5. Select WooCommerce Products: Purchasing any of the selected products will allow or disallow access to this file.

6. Select Paid Membership Pro Levels: Users with any of the selected Pmpro levels will be allowed/disallowed.

Once you’re done setting up the restrictions for the file, hit Save Changes and you’re all set! Test any file on your browser and it should have the restrictions applied.

Leave a Comment