From e730dbea8ba79f17c3f8c729f094719f57b6f57e Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 24 Feb 2015 12:33:46 +0100 Subject: [PATCH] Add missing 'can_create_motion' perm check (Fixed #1490). --- CHANGELOG | 4 ++++ openslides/motion/templates/motion/motion_detail.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 7fa1fcbfa..bd58b98e6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,10 @@ Version 1.7.1 (unreleased) ========================== [https://github.com/OpenSlides/OpenSlides/milestones/1.7.1] +Motions: +- Show amendment button for users with permission 'can_create_motion' + only. + Version 1.7 (2015-02-16) ======================== diff --git a/openslides/motion/templates/motion/motion_detail.html b/openslides/motion/templates/motion/motion_detail.html index 89d990ec1..439f02ae2 100644 --- a/openslides/motion/templates/motion/motion_detail.html +++ b/openslides/motion/templates/motion/motion_detail.html @@ -291,7 +291,7 @@ {{ version.creation_time }} - {% if 'motion_amendments_enabled'|get_config %} + {% if perms.motion.can_create_motion and 'motion_amendments_enabled'|get_config %}
{% trans 'Amendments' %}:
{% with amendments=motion.amendments.all %} {% if amendments %}