fivestar_validate_target was not called in nodeapi view
birwel - June 2, 2009 - 20:00
| Project: | Fivestar |
| Version: | 6.x-1.15 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Here's the patch.
When your own module implements the MODULE_fivestar_access hook
this call isn't performed in a node view.
| Attachment | Size |
|---|---|
| check_permissions_on_view.patch | 632 bytes |

#1
Looks correct to me, this bug has been fixed in the 2.x version (HEAD) already, but needs to be applied to the 1.x branches.
#2
Committed.
#3
Followup patch, the call to fivestar_validate_target() was incorrect, since the "type" in this case should be "node", not $node->type.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.