Skip Navigation

[Resolved] Allow this user to edit my (Plural Custom Post Name)

This support ticket is created 6 years, 11 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
- 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)

Author
Posts
#594168

Tell us what you are trying to do?

Hello,
Does access have the ability to create a function where:

Say there are 3 different companies using one site: Company A, B & C
Each company has a leader and associates.
For example–

Company A Has:
User 1 as Leader
User 1A as associate
User 2A as associate
User 3A as associate

Company B Has:
User 2 as Leader
User 1B as associate
User 2B as associate
User 3B as associate

Company C Has:
User 3 as Leader
User 1C as associate
User 2C as associate
User 3C as associate

I would like to make:
the Leaders "Authors" and
the Associates "Contributors" BUT

The Associates should only be able to see and edit the Custom Posts created by the company they belong to.

Is there any documentation that you are following?
none

Is there a similar example that we can see?
not that I've seen

What is the link to your site?
projects.goodstewardservicing.com

#594246

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - there is no such feature available to control the access for individual posts. As I understand, you want to give access as the Associates should only be able to see and edit the Custom Posts created by the company they belong to in backend, correct?

#594437

Yes, something like that...
I currently use the "WP Private Content Pro" Plugin to give individual access to Posts on a User by User basis
What my thoughts where for your Access plugin, is to give GROUP access on a Post Author basis.
For example..
If I have Custom Posts named "Projects"
In the Leader's/ Author Front account page,
Thee would be a list of Users inside his organization with checkboxes,
and a setting reading:
"Allow these users to edit my Projects"

See?

#594580

Minesh
Supporter

Languages: English (English )

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

Well - you can give group access to specific post to role basis not post author basis.

Please look at here and check how post group works:
=> https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/

However, we offer Access API filter hook: toolset_access_api_get_post_permissions that will help you to check post permission for current user.
=> https://toolset.com/documentation/programmer-reference/access-api-filters/#toolset_access_api_get_post_permissions