From ebe8f90d1e025515228d16b97d35a0edfa37af22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Mon, 12 May 2014 21:01:47 +0200 Subject: [PATCH] Fixed permission error in some widgets. Fixed agenda item widget, assignment widget, motion widget, participant user widget and participant group widget. Fixed #1279. --- openslides/agenda/templates/agenda/widget_item.html | 10 ++++++---- .../templates/assignment/widget_assignment.html | 10 ++++++---- openslides/motion/templates/motion/widget_motion.html | 10 ++++++---- .../templates/participant/widget_group.html | 10 ++++++---- .../participant/templates/participant/widget_user.html | 10 ++++++---- 5 files changed, 30 insertions(+), 20 deletions(-) diff --git a/openslides/agenda/templates/agenda/widget_item.html b/openslides/agenda/templates/agenda/widget_item.html index c35a4fb13..a4494212a 100644 --- a/openslides/agenda/templates/agenda/widget_item.html +++ b/openslides/agenda/templates/agenda/widget_item.html @@ -27,10 +27,12 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - - - + {% if perms.agenda.can_manage_agenda %} + + + + {% endif %} diff --git a/openslides/assignment/templates/assignment/widget_assignment.html b/openslides/assignment/templates/assignment/widget_assignment.html index 06635f046..7033343ae 100644 --- a/openslides/assignment/templates/assignment/widget_assignment.html +++ b/openslides/assignment/templates/assignment/widget_assignment.html @@ -11,10 +11,12 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - - - + {% if perms.assignment.can_manage_assignment %} + + + + {% endif %} diff --git a/openslides/motion/templates/motion/widget_motion.html b/openslides/motion/templates/motion/widget_motion.html index e7ee8ef35..865022f8b 100644 --- a/openslides/motion/templates/motion/widget_motion.html +++ b/openslides/motion/templates/motion/widget_motion.html @@ -11,10 +11,12 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - - - + {% if perms.motion.can_manage_motion %} + + + + {% endif %} diff --git a/openslides/participant/templates/participant/widget_group.html b/openslides/participant/templates/participant/widget_group.html index f5202e60d..b81462c8f 100644 --- a/openslides/participant/templates/participant/widget_group.html +++ b/openslides/participant/templates/participant/widget_group.html @@ -11,10 +11,12 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - - - + {% if perms.participant.can_manage_participant %} + + + + {% endif %} diff --git a/openslides/participant/templates/participant/widget_user.html b/openslides/participant/templates/participant/widget_user.html index cc4a4d03c..e9c002f0b 100644 --- a/openslides/participant/templates/participant/widget_user.html +++ b/openslides/participant/templates/participant/widget_user.html @@ -11,10 +11,12 @@ rel="tooltip" data-original-title="{% trans 'Show' %}">   - - - + {% if perms.participant.can_manage_participant %} + + + + {% endif %}