Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/polls/views.py')
-rw-r--r--webapp/polls/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/polls/views.py b/webapp/polls/views.py
index cca83da..c19eac1 100644
--- a/webapp/polls/views.py
+++ b/webapp/polls/views.py
@@ -168,7 +168,8 @@ class PollListView(ListView):
),
},
'action_structure_builder': {
- 'disabled': "disabled" if not poll.is_open() else "",
+ 'disabled': ("disabled" if
+ poll.structure.is_read_only() else ""),
'url': reverse(
'sociologist:structure.builder',
kwargs={'poll_id': str(poll.id)}