Hello,

I have unchecked the option "Allow author to rate his / her own content," but I have tested it and users can still rate their comments on nodes.

I tried to use this fix that someone discovered for 6.x-1.2, but it doesn't work for 6.x-1.3 (http://drupal.org/node/1196376).

Comments

davidcsonka’s picture

This problem also exists for the Drupal 7 version of Rate, which I am using.

Riyuzakki’s picture

Version: 6.x-1.3 » 7.x-1.3
StatusFileSize
new819 bytes

I probably has been fixed this issue. Check patch, pls.

HFlame7’s picture

Version: 7.x-1.3 » 6.x-1.3
michielnugter’s picture

Status: Needs review » Active
StatusFileSize
new1.07 KB
new940 bytes

I updated the previously posted patch to a cleaner version. I created two versions, a Drupal 6 and Drupal 7 version of the patch.

The Drupal 7 patch uses the entity_load function. The Drupal 6 version uses a switch statement.

Note: The patch is tested in Drupal 7 against the stable version. I checked the dev version and there is no reason this shouldn't work there.

michielnugter’s picture

Status: Active » Needs review
fangel’s picture

Status: Active » Reviewed & tested by the community

This works as intended for me.

mauritsl’s picture

Status: Reviewed & tested by the community » Fixed

Committed to both 6.x and 7.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

thermador’s picture

This exact issue is still happening for me, with the latest 6.x-1.x-dev.

I checked the code in rate.module, and the content of the patch in #4 did indeed get committed, so it's there. I'm not sure what is causing it though.

Something must have changed in the code, in the last two+ years since 6.x-1.3 was released.

thermador’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Issue summary: View changes
Status: Closed (fixed) » Active

  • mauritsl committed b0dadf7 on 8.x-1.x
    Issue #1416668 by michielnugter: Fix access check for comments
    
lamp5’s picture

Status: Active » Closed (outdated)