Restrict access to users without votes with functions