• Resolved bba01

    (@bba01)


    Hi!

    As I’ve understood it: If I give a user the respond_to_site-review capability they can answer reviews on pages/posts where they are the author. I’m running a site where companies have their own pages and users can review them. I don’t want to give author access to the companies to their own pages on my site because I don’t want them to change the content. However, I do want them to be able to respond to reviews given to their company page. Is there a workaround?

    Thank you for always great support and one of the best plugins I’ve seen!

    With best regards,

    bb

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    As I’ve understood it: If I give a user the respond_to_site-review capability they can answer reviews on pages/posts where they are the author.

    Reviews can only be responded to from the Admin side, either by editing a review, or directly on the “All Reviews” page (similar to “Quick Edit” on posts).

    I don’t want to give author access to the companies to their own pages on my site because I don’t want them to change the content. However, I do want them to be able to respond to reviews given to their company page.

    To do this, simply remove all page permissions (except for “read”) from the user role. You may need to to experiment a bit to get the capabilities right for your user roles.

    Is there a workaround?

    Here is a solution you may find interesting. Add the assigned_users option to the shortcodes (you can use this option together with the assigned_posts option), and then use the following snippet to restrict reviews that are visible in the admin area to only those which have been assigned to the current logged in user.

    https://pastebin.com/5jHK5LQR

    So for example, on the “Acme Inc.” company page, you would do something like this (where 13 is the User ID of the person who you want to assign the company reviews to):

    [site_reviews_summary assigned_posts="post_id" assigned_users="13"]
    
    [site_reviews assigned_posts="post_id" assigned_users="13" pagination="ajax"]
    
    [site_reviews_form assigned_posts="post_id" assigned_users="13"]
    
    

    And then make sure to give the user role the respond_to_site-reviews capability.

    For administrators it will look like this:

    And for users with the user role it would look like this:

    Plugin Author Gemini Labs

    (@geminilabs)

    Note:

    Users cannot currently approve reviews if they do not have the edit_others_site-reviews capability, but this capability also allow them to edit the review details.

    I have made a note of this and will at some point adjust Site Reviews to allow people to approve/unapprove reviews from the All Reviews page without having to giving them full access to edit reviews.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Answering reviews without author role’ is closed to new replies.