show count of solved Stations only for admins and moderators (see #139)

This commit is contained in:
oliver 2016-02-06 18:14:52 +01:00
parent 011bae5cd8
commit f630b50027

View file

@ -142,7 +142,9 @@
<span class="date"><?=$dateFormatter->format(new \DateTime($group['created']))?></span>
<span class="group"><a href="<?=$linker->link(array('charactergroups','group',$seminary['url'],$groupsgroup['url'],$group['url']))?>"><?=$group['name']?></a></span>
<span class="xp">
<?php if(count(array_intersect(array('admin', 'moderator'), \hhu\z\controllers\SeminaryController::$character['characterroles'])) > 0) : ?>
<?=sprintf(_('%dStations'), count($group['stations']))?>,
<?php endif ?>
<?=sprintf(_('%dXPs'), $group['xps'])?>
</span>
</li>