WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Zemanta
[resolved] Contributer can edit related posted, shouldn't be able to (5 posts)

  1. anefarious1
    Member
    Posted 3 months ago #

    Hello. I have a user on my site with contributer status. They are able to edit the related posts when logged in. You really shouldn't allow them access to this. Can you adjust those premissions from your end? All my other plugins don't allow any editing access. Thanks

    http://wordpress.org/plugins/related-posts-by-zemanta/

  2. xdaseinx
    Member
    Plugin Author

    Posted 3 months ago #

    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

  3. xdaseinx
    Member
    Plugin Author

    Posted 3 months ago #

    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

  4. anefarious1
    Member
    Posted 3 months ago #

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

  5. Mateja
    Member
    Plugin Author

    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic