From c7b52245b75c810795cd56b01ec1151b163e26a5 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 25 Jan 2015 15:15:28 +0100 Subject: [PATCH] Fix AssignmentPollUpdateView --- CHANGELOG | 2 ++ openslides/assignment/views.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index eb9c6bceb..b84a76143 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -16,6 +16,8 @@ Core: Motions: - New Feature to create amendments, which are related to a parent motion. - Added possibility to hide motions from non staff users in some states. +Assignments: +- Fix permissions to alter assignment polls. Other: - Cleaned up utils.views to increase performance when fetching single objects from the database for a view (#1378). diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index 3696ff536..e8c3c8854 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -200,6 +200,7 @@ class PollCreateView(SingleObjectMixin, RedirectView): class PollUpdateView(PollFormView): + required_permission = 'assignment.can_manage_assignment' poll_class = AssignmentPoll template_name = 'assignment/assignmentpoll_form.html'