Check if voting has ended. Improve rights checking