Issue #877392 by cpliakas, marvil07: Add a hook that allows modules to alter voting permissions.
This is a backport of the original patch on #877392-18
The main difference here is that I am applying changes only on vud
module because of the plan(see #1360572).
The othe minor difference is about re-naming some variables to make it
D7-friendly.