• Resolved thirdshiftdigital

    (@thirdshiftdigital)


    I have seen the couple of threads regarding users with edit_post who should be able to make a revision of a post but cannot publish directly, but I just cannot get this to work in practice.

    Can you please explain how to change user permissions to do this or what assumptions are being made? I am not a developer but generally consider myself an advanced user and site manager. I currently have WPFront User Role Editor installed, and have tried a hundred different combinations of toggling publish_pages, edit_pages, edit_published_pages, edit_others_pages and just can’t get this to work.

    I am setting up an event site that will have multiple content editors updating pages with information as they receive it (often on pages & posts that another user has created), and one editor to review the changes before publication.

    As a secondary concern, why is there no settings page or even the vaguest notion of documentation for this plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jamiechong

    (@jamiechong)

    Revisionize was created for a client of mine and we decided it was useful enough to give to the community. It wasn’t intended to handle multiple user levels, like editors, contributors, admins nor was it meant to address the use-case you’re presenting.

    The user permissions change will require you to add some code to you functions.php file. There are two filters you can use to set whatever permissions you want. Something like this (this code won’t work – it’s an example):

    
    add_filter('revisionize_user_can_revisionize', function() {
      return current_user_can('edit_posts') || current_user_can('....');
    });
    
    add_filter('revisionize_user_can_publish_revision', function() {
      return current_user_can('publish_posts') || current_user_can('publish_pages') || current_user_can('....');
    });
    

    Down the road when I have more bandwidth, I will try to expand the functionality of Revisionize to better address other use cases dealing with user roles.

    @jamiechong

    Thanks for this information. We have a similar issue and we’re trying to make it work, so I just want to understand one thing…

    Ideally we would like for people with the permission to “edit_pages” to be able to see the “Revisionize” link for published pages on the All Pages listing. [The user will not have the ability to “edit_published_pages” though, since this exposes the Update button which basically gives them the right to publish.]

    We’ve added this to functions.php:

    add_filter(‘revisionize_user_can_revisionize’, function() {
    return current_user_can(‘edit_pages’);
    });

    but the “Revisionize” link doesn’t appear for published pages on the listing of all pages. The only option is “View”.

    Other than hacking your plugin, can you think of a way we can get the Revisionize link to show up there, so that these users who don’t have the right to publish can still make revisions?

    Thanks!
    K.

    bluantinoo

    (@bluantinoo)

    +1 for @ksoares issue.

    Don’t want users to edit published posts, but they should be able to revisionize them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting user permissions for revisionize only’ is closed to new replies.