Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Did you remove the ‘publish_posts’ cap for editors and authors by chance? Doing so changes the post meta box for publishing, and restricts them to saving as draft or pending review.

    Thread Starter dshawotet

    (@dshawotet)

    Yes that was it. I was trying to not give my authors publish rights and didn’t think this make EF not work. Is there a workaround in place to allow them to still use EF in a different module and not part of the Publish module/metabox in WP?

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Is there a workaround in place to allow them to still use EF in a different module and not part of the Publish module/metabox in WP?

    Not currently, but it’s one of our items for the next iteration.

    Hi, I am having trouble with this too and am wondering if you can reccomend a workaround so that users cannot see/use the publish button.

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    @brignewspaper As of v0.7.1, you have two options:

    1. Remove the ‘publish_posts’ capability from your users, which means that they’ll be able to save a post as draft or pending review when editing (but no other custom statuses.
    2. Leave the ‘publish_posts’ capability which means users will be able to change custom statuses and publish posts.

    In v0.7.2, hopefully out next week, we’ll have some functionality so users without the ‘publish_posts’ capability will be able to change custom statuses. It’s already been committed, I just need to finish a few more things for the release.

    Hi Daniel,

    Just wondering if you know when 0.7.2 will be out?
    Thanks ??

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Sorry, was caught up in a couple other projects. It will hopefully be out this week.

    Sorry to insist in this, but I’m loving more and more your tool. It’s great even for a web like mine that has only five authors. But I’m waiting to fully use it when colaborators can change the statuses.
    When will it be out?
    Many thanks.

    álex

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Hi. I’m using the custom statuses for contributors feature but I’ve discovered that they can’t change a custom status from one that only editors can change to one that contributors can change.

    In my setup, I have 7 custom statuses:

    • Pitch – default
    • Assigned – Post idea assigned to writer.
    • In Progress – Writer is working on the post.
    • Draft
    • Pending Review – Editor needs to review the post and write the excerpt.
    • Needs SEO – Admin needs to optimize the post for search engines and check the slug.
    • Ready to Publish – Editor needs to publish or schedule the post for publishing.

    Only an editor can change a post from “Pitch” to “Assigned”. Contributors can’t assign pitches to themselves or anyone else.

    When a contributor starts working on the post they were assigned to, they are unable to change the status from “Assigned” to “In Progress” or “Pending Review” to let the editor know they are working on the story or are done with the story.

    As a workaround, the contributors use the Editorial Comments feature to notify the editor and the admin that they need the post status changed.

    I was hoping that contributors could change from an editor/admin assigned status to one that they can control.

    Here’s the code I used:

    function efx_limit_custom_statuses_by_role( $custom_statuses ) {
    
    	$current_user = wp_get_current_user();
    	switch( $current_user->roles[0] ) {
    		// Only allow a contributor to access specific statuses from the dropdown
    		case 'contributor':
    			$permitted_statuses = array(
    					'pitch',
    					'draft',
    					'in-progress',
    					'pending-review',
    				);
    			// Remove the custom status if it's not whitelisted
    			foreach( $custom_statuses as $key => $custom_status ) {
    				if ( !in_array( $custom_status->slug, $permitted_statuses ) )
    					unset( $custom_statuses[$key] );
    			}
    			break;
    	}
    	return $custom_statuses;
    }
    add_filter( 'ef_custom_status_list', 'efx_limit_custom_statuses_by_role' );
    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Hi. I’m using the custom statuses for contributors feature but I’ve discovered that they can’t change a custom status from one that only editors can change to one that contributors can change.

    This is by design. If the code were to let them change the post back to a status they control, the dropdown wouldn’t have the original option.

    Why don’t you just give contributors access to the “Assigned” status?

    Also, for future reference, please create new threads for new topics ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Edit Flow] Editor, Authors not able to change status other then draft’ is closed to new replies.