Merge pull request #2390 from emanuelschuetze/agend-item-check

Template checks if user has no permission to see agenda items.
This commit is contained in:
Norman Jäckel 2016-09-17 11:00:53 +02:00 committed by GitHub
commit ca9c946b6f
2 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,8 @@
<translate>PDF</translate>
</a>
<!-- List of speakers -->
<a ui-sref="agenda.item.detail({id: assignment.agenda_item_id})" class="btn btn-sm btn-default">
<a ui-sref="agenda.item.detail({id: assignment.agenda_item_id})"
os-perms="agenda.can_see" class="btn btn-sm btn-default">
<i class="fa fa-microphone fa-lg"></i>
<translate>List of speakers</translate>
</a>
@ -28,7 +29,7 @@
<i class="fa fa-pencil"></i>
</a>
</div>
<h1>{{ assignment.agenda_item.getTitle() }}</h1>
<h1>{{ assignment.agenda_item.getTitle() || assignment.title }}</h1>
<h2>
<translate>Election</translate>
</h2>

View File

@ -10,7 +10,8 @@
<translate>PDF</translate>
</a>
<!-- List of speakers -->
<a ui-sref="agenda.item.detail({id: motion.agenda_item_id})" class="btn btn-sm btn-default">
<a ui-sref="agenda.item.detail({id: motion.agenda_item_id})"
os-perms="agenda.can_see" class="btn btn-sm btn-default">
<i class="fa fa-microphone fa-lg"></i>
<translate>List of speakers</translate>
</a>