Skip to content

Commit

Permalink
Merge pull request afup#1280 from jdecool/fix-home-techletter-card
Browse files Browse the repository at this point in the history
Correction du droit d'affichage de la carte 'Abonnements à la veille' sur la page d'accueil de l'admin
  • Loading branch information
agallou authored Apr 2, 2023
2 parents ba6ecde + de56837 commit 0f24650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/AppBundle/Controller/Admin/HomeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __invoke()
}
}

if ($this->security->isGranted(('ROLE_VEILLE'))) {
if ($this->security->isGranted(('ROLE_ADMIN'))) {
$cards[] = [
'title' => 'Abonnements à la veille',
'statistics' => ['Abonnements' => $this->techletterSubscriptionsRepository->countAllSubscriptionsWithUser()],
Expand Down

0 comments on commit 0f24650

Please sign in to comment.