I'd like my users to be able to vote only on nodes created less that one month ago.

I've tryed to use the hook_fivestar_access, and it avoids the vote to be casted, but the widget is displaying as if it was possible to vote and it is confusing.

I've explored the module, and found the function _fivestar_allow_vote($element) which would do the job, but I can't hook in it.

Did I miss something ?

After having thought about it, the best way to handle my case would be that the function _fivestar_allow_vote return FALSE if the user does not have permission to vote.

Does is sounds logical ?

If yes I'll provide a patch.

Comments

dbt102’s picture

Category: Bug report » Feature request
TR’s picture

Version: 7.x-2.1 » 8.x-1.x-dev

New features need to go into the current version of Fivestar first.