A minor bug in voting module

This prevented the users from voting. Had some minor permission issues, fixed.