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

    (@dudo)

    Hi ishanbansal, thank you for using YASR!

    Only who have the “publish_posts” capability can insert overall rating. According to the wordpress documentation, an Author should have the capability to publish_post.

    Did you removed that capablity to authors with your plugin?

    Best,
    Dario

    Thread Starter ishanbansal

    (@ishanbansal)

    Hi Dudo

    Thanks for the reply. Yes, I removed the option of publish posts for my author, so that editorial team can check the posts first.

    Is there a way to give ratings rights to those who do not have publish post options?

    Thanks.

    Plugin Contributor dudo

    (@dudo)

    Hi ishanbansal, you could do this by editing the plugin:

    In the plugin dir open filelib/yasr-functions.php and on both lines 158 and 168 change this

    if ( current_user_can( 'publish_posts' ) ) {

    with this

    if ( current_user_can( 'edit_posts' ) ) {

    it should work.

    Best,
    Dario

    Hi Dario,

    I have a similar situation. I want my contributors to give ratings. (I do not have customized roles)

    I made the changes you suggested above. When I login as a contributor, the YASR stars are there but when I click on them, I get the message “You do not have sufficient permissions to access this page.” and the rating does not stick with the post.

    I was wondering if I also needed to modify yasr-ajax-functions.php too?

    Help!

    Cheers
    Robert.

    OK Dario, I made the same changes in yasr-ajax-functions.php and it worked. Hope I didn’t screw up something else in the process.

    Cheers,
    Robert.

    Plugin Contributor dudo

    (@dudo)

    Hi Robert, you’re right, I simply forgot that ??

    It will work as you need.

    Best,
    Dario

    Thanks Dario. I love the plugin btw. Excellent work.

    Thanks for the fix, that makes it totally perfect!

    In the yet-another-stars-rating/lib/yasr-functions.php there is a typo in the auto response:

    _e(“You don’t have enought privileges to insert Multi Set”);

    Another in yet-another-stars-rating/lib/yasr-ajax-functions.php

    /If there is not sinppet type, can happen when an user choose the snippet but doesn’t use overall rating

    Angela

    Plugin Contributor dudo

    (@dudo)

    Thank you for sharing this!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Authors Not Able to Add Rating.. Message "You don't have enough privileges to..’ is closed to new replies.