Skip to content

Commit

Permalink
Planning accessible pour admin
Browse files Browse the repository at this point in the history
  • Loading branch information
prytoegrian committed Mar 12, 2018
1 parent 7623b65 commit dba1f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Planning/PlanningController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class PlanningController extends \LibertAPI\Tools\Libraries\AController
protected function ensureAccessUser($order, \LibertAPI\Utilisateur\UtilisateurEntite $utilisateur)
{
$rights = [
'getList' => $utilisateur->isResponsable() || $utilisateur->isHautReponsable(),
'getList' => $utilisateur->isResponsable() || $utilisateur->isHautReponsable() || $utilisateur->isAdmin(),
];

if (isset($rights[$order]) && !$rights[$order]) {
Expand Down

0 comments on commit dba1f29

Please sign in to comment.