Change WordPress user roles and capabilities Forums How to or FAQ Removing Access Capabilities (Once Granted)

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2764
    flytenewmedia
    Participant

    This may sound like a stupid question but how do you remove edit access to a post/page once granted. From post/page screen if I select posts and bulk edit Access Permissions, removing user ID and leaving the User ID field empty displays alert ‘Provide list of userID’. I hit cancel and the Field is then empty but the user can still edit the posts. Anyone?

    #2767
    Vladimir
    Keymaster

    I think some clarification is needed. “Edit restrictions” does not give/grunt to a user any additional capabilities. It does not depend from the model you select: ‘Allow’ or ‘Prohibit’. User should have posts edit capabilities already.
    When you add ‘edit restrictions’ for user, User Role Editor make a less subset of posts available for edit for this user.

    Bulk action “Edit Access” from the posts list has a purpose to automate the ‘edit access restrictions’ setup on the user level. You can modify this settings directly opening selected user profile.
    So you should input IDs list of users, for which you wish to modify posts edit restrictions. If you do not input users ID list, and suppose that script will update data for all users, it’s a wrong assumption.
    Some sites has tens of thousands users – update meta data for every user at such site is not the task which can be fulfilled within the limited time of 1 client-server update request.

    For example, users 5,7,9 has role ‘editor’ and can edit all posts. After you set for them ‘Allow’ to edit posts with ID 4, 6, 8 those users will see and can edit just those 3 posts.
    If you wish to remove such restriction and allow them to edit all posts back, you may do it opening those users profiles one by one and removing post IDs from ‘edit restrictions’ section.
    Other way is to use bulk action ‘Edit Access’ at the posts page, select replace existing data, left posts list empty, input user IDs list (5, 7, 9). As the result post IDs will be removed from those users meta data and edit restrictions stop work for them.

    If you wish to set/remove edit restrictions globally it’s more convenient to work with them at the role level – ‘Posts Edit’ button at the User Role Editor page.

    #2768
    flytenewmedia
    Participant

    Ok thanks that’s making more sense to me now.

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