Skip Navigation

[Resolved] How to ensure Access Author role can only read and edit his own custom posts

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Author
Posts
#1154149

I want to enable my real estate site as a membership site so that other brokers/agents can create their own listings (custom posts). Currently, I assigned them as default Author role in WordPress. In Access, Author role has Read enabled. However in their profile page after login, they can see everyone else's listings, as well as the entire media library. How can I ensure they can only see and edit their own custom posts and media that they uploaded?

#1154472

Hello,

How do you setup the "their profile page"? if it is wordpress font-end, you can setup a post view query listings/media posts, filter by:
Post author is the same as the logged in user

see our document:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

But the wordpress admin side, in your case, there are only few permissions can be disabled, for example:
- Delete any
- Edit any
- Preview any
More help:
https://toolset.com/documentation/user-guides/setting-access-control/

#1155176
Screen Shot 2018-11-29 at 11.56.25 AM.jpg
Screen Shot 2018-11-29 at 11.56.14 AM.jpg

I'm not sure I understand. I'm using default WordPress profile page. Left column shows the custom posts, etc. If using Views, I can only display results right? How does the agent/broker add new listings - need to design CRED forms? Is there a simpler way like tweaking Access so that it can display only custom posts related to the that Author, and also allow edit/add new custom posts? - right now as in attached pics, the user sees listings of everyones' else, although he can only edit his own.

#1155191

According to your screenshots, it is in wordpress admin side, as you can see there isn't such a built-in feature within Access.

As I mentioned above:
there are only few permissions can be disabled, for example:
- Delete any
- Edit any
- Preview any

But none of them can achieve what you want:

they can only see and edit their own custom posts and media

Access plugin is based on the WordPress user capabilities, according to wordpress document:
https://codex.wordpress.org/Roles_and_Capabilities
There isn't such kind of capability too

And Toolset form and Views won't work as expected in wordpress admin side, so I don't think it is possible within Access, you might consider custom codes, but it is out the range of Toolset support, you can check it with our Toolset contractors:
https://toolset.com/contractors/

#1155274

I have resolved this issue with a WP plugin called Advanced Access Manager (https://wordpress.org/plugins/advanced-access-manager/). It allows hiding of lists at the backend and/or frontend by role or user for custom post types as well - doing exactly what I needed.

Thank you!