Skip Navigation

[Resolved] Created a role copied from Administrator and can only Edit or Bin existing posts

This support ticket is created 7 years 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 7 replies, has 2 voices.

Last updated by Beda 5 years, 8 months ago.

Assisted by: Beda.

Author
Posts
#597273
chrome_2017-12-08_20-07-55.png
Everything Checked for Role in Posts.png

I copied the Administrator Role. Posts were under access control with everything checked (see image). They are only able to View or Bin posts that do not belong to them. If I revoke Managed by Access then the role can successfully Edit, Quick Edit, View and Bin posts by other authors.

#597349

1. I created a new Custom Role - copying the rules from the Administrator
2. I logged in as such an user, and created native WordPress Posts.

I notice that even thou this user is an Administrator, I can:
- add new posts
- delete, view, edit, and quick edit the user's own new posts
- trash and view other's posts.

While the symptoms are seemingly not the same as on your install, it is still wrong.

Administrators should be just that: Administrators.

The capabilities "edit_others_pages and edit_others_posts" are active for this role.

Please can you confirm the symptoms once again with the above data?
If your issue is different, please provide me a Duplicator Package.
https://toolset.com/faq/provide-supporters-copy-site/

I will meanwhile report this error I saw.

#598512

I just wanted to ask a confirmation.

1. I installed WordPress and Types + Access
2. Created a custom role "custom_role" and copied the Administrator
3. Set the native Post Type Posts under Access Control
4. Created a user of that new role

This new user can edit, add, trash any post, just as expected.

But, this is not true for Custom Post Types.
If I set up a custom post type, then those Posts I cannot edit as the new user.

I then created a new post in that post type as the new user, and then it started working.

As long there is only one post of another user, then it does not work.

As soon the Custom post type is removed from Access Control, native posts also start to work.

So, the issue here is only replicable if:
- you have a Custom Post Type
- a custom role copied from administrator
- control native and custom posts with access
- have only one custom post or post in the list.

It's with the Developers now.

#599357

OK, thanks. Re your first response, that seems the same symptoms.
- trash and view other's posts.
I would expect the administrator to be able to edit others posts too.

So, the issue here is only replicable if:
- you have a Custom Post Type
- a custom role copied from administrator
- control native and custom posts with access
- have only one custom post or post in the list.

Agreed, in my case, to clarify, the new administrator didn't have any posts belonging to them, though there were many posts by others.

Let me know if you'd like me to do some more testing or look at something in particular.

#611758

We have an erratum with a workaround now:
https://toolset.com/errata/custom-user-role-not-allowed-to-edit-others-post-even-if-set-so-in-access/

It is not a BUG solution but shows how to avoid the issue (by creating a post each post type for the user).

#626548

I'd like to keep this open so I can note when bug fix applied.

#626553

Sure, I put this ticket in "escalated to 2nd Tier" and will inform you once there are updates.

#1231545

This is solved in Access 2.7