From a06d01e87c108af9bd1737895fc9fe7da4851a6f Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Mon, 11 Nov 2024 16:10:41 +0100 Subject: [PATCH] adhocracy4/polls: hide button to go back to poll after voting for unregistered users --- adhocracy4/polls/static/PollDetail/PollQuestions.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adhocracy4/polls/static/PollDetail/PollQuestions.jsx b/adhocracy4/polls/static/PollDetail/PollQuestions.jsx index 3a01e54f4..0eaac08bd 100644 --- a/adhocracy4/polls/static/PollDetail/PollQuestions.jsx +++ b/adhocracy4/polls/static/PollDetail/PollQuestions.jsx @@ -388,9 +388,10 @@ class PollQuestions extends React.Component { ))} this.removeAlert()} {...this.state.alert} /> -
- {this.state.hasUserVote ? this.linkChangeVote : this.linkToPoll} -
+ {this.state.questions.length > 0 && this.state.questions[0].authenticate && +
+ {this.state.hasUserVote ? this.linkChangeVote : this.linkToPoll} +
} ) : (