diff --git a/CHANGELOG b/CHANGELOG index f01e7d1e3..35ba70736 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,11 @@ Agenda: agenda model. No API changes. Assignments: - Massive refactoring and cleanup of assignments app. +- Renamed app from assignment to assignments +Motions: +- Renamed app from motion to motions +Mediafiles: +- Renamed app from mediafile to mediafiles Users: - Massive refactoring of the participant app. Now called 'users'. - Used new anonymous user object instead of an authentification backend. diff --git a/openslides/agenda/main_menu.py b/openslides/agenda/main_menu.py index 00e578e57..db50655a6 100644 --- a/openslides/agenda/main_menu.py +++ b/openslides/agenda/main_menu.py @@ -8,7 +8,7 @@ class AgendaMainMenuEntry(MainMenuEntry): Main menu entry for the agenda app. """ verbose_name = ugettext_lazy('Agenda') - required_permission = 'agenda.can_see_agenda' + required_permission = 'agenda.can_see' default_weight = 20 pattern_name = 'item_overview' icon_css_class = 'glyphicon-calendar' diff --git a/openslides/agenda/models.py b/openslides/agenda/models.py index 8fc269e52..d9ec490ed 100644 --- a/openslides/agenda/models.py +++ b/openslides/agenda/models.py @@ -114,8 +114,8 @@ class Item(RESTModelMixin, SlideMixin, AbsoluteUrlMixin, MPTTModel): class Meta: permissions = ( - ('can_see_agenda', ugettext_noop("Can see agenda")), - ('can_manage_agenda', ugettext_noop("Can manage agenda")), + ('can_see', ugettext_noop("Can see agenda")), + ('can_manage', ugettext_noop("Can manage agenda")), ('can_see_orga_items', ugettext_noop("Can see orga items and time scheduling of agenda"))) class MPTTMeta: diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index f6a39e51b..dde29ad09 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -2,7 +2,7 @@ {% load tags %}
- {% if perms.agenda.can_manage_agenda or perms.core.can_manage_projector %} + {% if perms.agenda.can_manage or perms.core.can_manage_projector %}
{% if perms.core.can_manage_projector %} @@ -17,7 +17,7 @@ {% endif %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} @@ -56,7 +56,7 @@
{% endif %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %}
{% if node.comment %} {{ node.comment|first_line }} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 5d6d6ac40..e4dd49b42 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -17,7 +17,7 @@ {% block content %}

{% trans "Agenda" %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} @@ -31,7 +31,7 @@ {% trans 'Tags' %} {% endif %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} @@ -56,7 +56,7 @@
- {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %}

{% trans 'Number agenda items' %} @@ -95,13 +95,13 @@ - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} {% endif %} {% if perms.agenda.can_see_orga_items %} {% endif %} - {% if perms.agenda.can_manage_agenda or perms.core.can_manage_projector %} + {% if perms.agenda.can_manage or perms.core.can_manage_projector %} {% endif %} @@ -109,13 +109,13 @@ - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} {% endif %} {% if perms.agenda.can_see_orga_items %} {% endif %} - {% if perms.agenda.can_manage_agenda or perms.core.can_manage_projector %} + {% if perms.agenda.can_manage or perms.core.can_manage_projector %} {% if items %} -

    +
      {% recursetree items %}
    1. {% include "agenda/item_row.html" %} diff --git a/openslides/agenda/templates/agenda/sort.html b/openslides/agenda/templates/agenda/sort.html index eaee7a1f2..1bb85f3bd 100644 --- a/openslides/agenda/templates/agenda/sort.html +++ b/openslides/agenda/templates/agenda/sort.html @@ -12,7 +12,7 @@ {% block javascript %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %} @@ -22,7 +22,7 @@ {% block content %}
      {% csrf_token %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage %}