Merge pull request #1491 from emanuelschuetze/fix-1490

Add missing 'can_create_motion' perm check (Fixed #1490).
This commit is contained in:
Norman Jäckel 2015-02-25 11:20:29 +01:00
commit 104b0625a0
2 changed files with 5 additions and 1 deletions

View File

@ -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)
========================

View File

@ -291,7 +291,7 @@
</h5>
{{ version.creation_time }}
{% if 'motion_amendments_enabled'|get_config %}
{% if perms.motion.can_create_motion and 'motion_amendments_enabled'|get_config %}
<h5>{% trans 'Amendments' %}:</h5>
{% with amendments=motion.amendments.all %}
{% if amendments %}