Fixed permission validation in article list
authorMarcel Werk <burntime@woltlab.com>
Tue, 25 Apr 2017 16:08:59 +0000 (18:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 25 Apr 2017 16:08:59 +0000 (18:08 +0200)
com.woltlab.wcf/templates/articleList.tpl

index 92eee88ea479e044a3f32a98873ead06a3ca3e9e..f3d30427cd5ae6471ace126a31469025614ed183 100644 (file)
@@ -17,7 +17,7 @@
        <li><a rel="alternate" href="{if $__wcf->getUser()->userID}{link controller='ArticleFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}{else}{link controller='ArticleFeed'}{/link}{/if}" title="{lang}wcf.global.button.rss{/lang}" class="jsTooltip"><span class="icon icon16 fa-rss"></span> <span class="invisible">{lang}wcf.global.button.rss{/lang}</span></a></li>
 {/capture}
 
-{if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle')}
+{if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle') || $__wcf->getSession()->getPermission('admin.content.article.canContributeArticle')}
        {capture assign='contentHeaderNavigation'}
                <li><a href="{link controller='ArticleAdd' isACP=true}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.add{/lang}</span></a></li>
        {/capture}