Change WordPress user roles and capabilities › Forums › How to or FAQ › How to allow user role to edit posts of certain user id
- This topic has 4 replies, 2 voices, and was last updated 2 years ago by
Peled Ben Yair.
-
AuthorPosts
-
28/02/2021 at 07:16 #7391
Peled Ben Yair
Participant28/02/2021 at 07:44 #7392Peled Ben Yair
ParticipantIn addition to that issue
I understand that I need to checkedit posts
for that option to show.
but if I check that checkbox the user is able to edit all the posts and not the posts that were created by a certain user.for example, I created a role named
tikshuv_editor
I want to lettikshuv_editor
role the option to edit posts by user with userid = 4.but because I gave him the option to edit posts,
tikshuv_editor
is able to edit all the posts by all the users…
How can I solve that?01/03/2021 at 03:03 #7394Vladimir
KeymasterHi,
According to WordPress built-in permissions logic:
– User can not edit any posts if he does not have ‘edit_posts’. User can not edit posts created by other users if he does not have ‘edit_others_posts’.Thus, ‘edit_posts’, ‘edit_others_posts’ capabilities are required both in order user can edit posts created by other users.
URE shows ‘with author user ID’ field for user or role if it can at least ‘edit_others_posts’ or ‘edit_others_pages’ and restricts posts available for editing by posts created only by users which ID are listed in this field.
I can just suppose according to your description, that some other plugin may change default WordPress permissions logic. Try temporally deactivate all plugins except URE Pro and test what posts are available for editing to restricted user. If it will work as expected, activate plugins back one by one with new test in order to isolate a conflict.
01/03/2021 at 10:09 #7395Peled Ben Yair
ParticipantThank you for your response.
I have tried what you suggested, I found out that I can edit posts created by one specific user only with the id of 4 which is an administrator, If I tr other admins I can’t edit their posts.
I have deactivated all plugins except URE and cptuithis is the editor configuration
What can be the issue?
does the other user need to have a certain capability?
03/03/2021 at 06:15 #7399Peled Ben Yair
ParticipantCan it be caused by something else?
-
AuthorPosts
- You must be logged in to reply to this topic.