Change WordPress user roles and capabilities Forums How to or FAQ How to allow user role to edit posts of certain user id

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7391
    Peled Ben Yair
    Participant

    Hi, I want to allow a user role to edit posts to a certain user id.
    I activated the posts edit option and when I choose the posts edit I some times see this
    2021-02-28_09-10-11
    but some times I do not see the with author user ID option
    What can be the reason for that?

    #7392
    Peled Ben Yair
    Participant

    In addition to that issue
    I understand that I need to check edit 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 let tikshuv_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?

    #7394
    Vladimir
    Keymaster

    Hi,

    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.

    #7395
    Peled Ben Yair
    Participant

    Thank 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 cptui

    this is the editor configuration
    What can be the issue?
    does the other user need to have a certain capability?
    2021-03-01_12-07-05

    #7399
    Peled Ben Yair
    Participant

    Can it be caused by something else?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.