Hide files on “Categories” view if role not allowed

in Download Manager Free

Viewing 7 posts - 1 through 7 (of 7 total)
Oct 23, 2020 at 2:56 pm
#139169
Participant
J Wheeler
OP

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

Oct 23, 2020 at 3:06 pm
#139171
Moderator
Nayeem Riddhi
Staff

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

Thanks.

Oct 23, 2020 at 3:51 pm
#139176
Participant
J Wheeler
OP
This reply has been marked as private.
Oct 24, 2020 at 6:28 am
#139210
Moderator
Nayeem Riddhi
Staff

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

thanks

Oct 26, 2020 at 1:42 pm
#139330
Participant
J Wheeler
OP
This reply has been marked as private.
Oct 27, 2020 at 4:11 am
#139360
Moderator
Nayeem Riddhi
Staff

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…

Oct 27, 2020 at 2:07 pm
#139426
Participant
J Wheeler
OP

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.