Only display those filter options for items the user actually has access to

(fixes issue 655)
This commit is contained in:
Stewart Platt
2011-03-30 00:12:07 +02:00
committed by Thomas Keller
parent 766232f29b
commit 51c6cdb20d
2 changed files with 24 additions and 18 deletions

View File

@@ -15,7 +15,7 @@
{block context}
<p><span class="label{if 'all' == $model_filter} active{/if}"><a href="{url 'IDF_Views_Project::timeline', array($project.shortname, 'all')}">{trans 'All Updates'}</a></span></p>
<p><strong>{trans 'Filter by type'}</strong><br />
{foreach $all_model_filters as $filter_key => $filter_name}
{foreach $accessible_model_filters as $filter_key => $filter_name}
{if $filter_key != 'all'}
<span class="label{if $filter_key == $model_filter} active{/if}"><a href="{url 'IDF_Views_Project::timeline', array($project.shortname, $filter_key)}">{$filter_name}</a></span><br />
{/if}