Add missing 'can_create_motion' perm check (Fixed #1490).

This commit is contained in:
Emanuel Schuetze 2015-02-24 12:33:46 +01:00
parent 0f55583b4c
commit e730dbea8b
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] [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) Version 1.7 (2015-02-16)
======================== ========================

View File

@ -291,7 +291,7 @@
</h5> </h5>
{{ version.creation_time }} {{ 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> <h5>{% trans 'Amendments' %}:</h5>
{% with amendments=motion.amendments.all %} {% with amendments=motion.amendments.all %}
{% if amendments %} {% if amendments %}