add group context and flag type checks to vote limiting