Hide files on “Categories” view if role not allowed

Viewing 7 posts - 1 through 7 (of 7 total)
#139169

J Wheeler
Participant

I have a “Categories” view page that is showing all files in the category, which is great, but when I log out and go to that page I still see all files (with a link to login to download)

I would rather not show any file that the current user does not have permission to view, so if my files are:
– File1.xls (visible to Admin, Subscriber)
– File2.pdf (visible to guest)
– File3.pdf (visible to Admin, Subscriber, Guest)

and I am not logged in, I would see files 2 and 3
if I am logged in as subscriber I would see 1 and 3

#139171

Nayeem Riddhi
Moderator

please share your page URL, if possible, please, give your temporary wp-admin login details in a private reply for checking the issue,

Thanks.

#139176

J Wheeler
Participant
This reply has been marked as private.
#139210

Nayeem Riddhi
Moderator

I can’t able to login with your credentials, please check

thanks

#139330

J Wheeler
Participant
This reply has been marked as private.
#139360

Nayeem Riddhi
Moderator

Hi,

Category access for roles and packages follow these steps as I describe below,

before giving access to a certain category for a particular role you have to set like as I image attached, you should use Use Link Template option and your particular role,

cat1

then you have to make empty forAllow Access option or giving a particular role on it like as I image attached,

cat2

because Package Access = Package Access + All Category Access = All Visitors + Subscribers = All Visitors

and Package Access = Package Access empty + Category Access(Subscribers) = Subscribers

or Package Access = Package Access(subscriber) + Category Access(Subscribers) = Subscribers

Hope you understand…

#139426

J Wheeler
Participant

I set the “Category Page Template” to “use link template”
I even set the “who can have access to packages under this category” to “administrator” only

I view the files page incognito view and still see all the files (when I click to download it tells me to login to download)

You can review my settings using the same credentials above

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Hide files on “Categories” view if role not allowed’ is closed to new replies.