Support » Plugin: Related Posts by Sovrn » Contributer can edit related posted, shouldn't be able to

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi!
    We’ve look at this often and a lot of users actually wanted for their contributors to have that kind of access. I guess the best would be to give you, the admin, the choice whether that happens or not.

    We’ll look into implementing that. Thanks for the idea!

    Best,
    Rok

    Hey,
    actually the fine people at ur company came up with a custom solution for you!

    You can easily edit the zemanta_related_posts.php file and change this:

    if (current_user_can('edit_posts')) {
    		$posts_footer .= '<div class="zem_rp_footer" style="text-align: right;"><a class="zem_rp_edit" href="#" id="zem_rp_edit_related_posts">Edit Related Posts</a></div>';
    	}

    to

    if (current_user_can('manage_options')) {
    		$posts_footer .= '<div class="zem_rp_footer" style="text-align: right;"><a class="zem_rp_edit" href="#" id="zem_rp_edit_related_posts">Edit Related Posts</a></div>';
    	}

    Here’s a screeshot too: http://i.imgur.com/DVgQdXA.png

    Best,
    Rok

    Sweet, Thanks! So it seems to indicate removal of the ability to edit related posts to managing options? What exactly is managing of options?

    Hey,

    the ability of managing options outranks the ability of editing posts. If an user can manage options she’s an admin as only admins are allowed to do this and admins can edit posts, so no ability is removed.

    I suggest you check out this thread, especially whiteatom’s comment and the page about roles and capabilities explaining what’s included in managing options.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contributer can edit related posted, shouldn't be able to’ is closed to new replies.