Skip Navigation

[Resolved] Toolset View – Access Control

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 3 weeks, 3 days ago.

Assisted by: Minesh.

Author
Posts
#2792583

Tell us what you are trying to do?
I want to make Toolset View to loads the post list according the toolset access "read" permission / on filter Level too

Is there any documentation that you are following?
https://toolset.com/documentation/using-access-to-hide-certain-posts-from-view-results/
But this is for specific post group, i want it to automatically detect the current logged in user and automatically exclude

Is there a similar example that we can see?
-

What is the link to your site?
-

For example :
I Have post that can be read by guest, i create a "guest" post group in toolset access
I have post that can be read only by member, i create a "members only" post group in toolset access

i've set a post to "members only" post group, however when i create a view, it still shows up in the list. I tested that as guest i cannot open the post (it shows 404 when i click), However it still shows up on the list

how to make it so it doesnt shows up at all on the list? (Using query filter?)

Thanks

#2792588

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL where you added the view and what post group you created and what posts you would like to exclude send me admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2792596

Hello

i found a workaround where i enable the access group hidden field, then just manually define each user group id - role (role a = group id a, role b = group id b)

Then set the query filter to filter post based on it and adding a custom code to read user's role, define the usergroup and pass it to toolset view as a shortcode attributes

#2792611

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - you're welcome to share the solution here so it may help other users.