Text results

Did you mean "if not (is_authenticated() and (is_admin(..) or is_election_admin(..)))"?
Like this, the user needs to be both a generic admin and an election admin, while the check on line 312-314 only requires one of both.