Merge branch '111_exports_suite' into calendar/finalization

This commit is contained in:
2022-09-08 10:19:53 +02:00
72 changed files with 579 additions and 282 deletions

View File

@@ -559,13 +559,13 @@ class ExportManager
}
foreach ($centers as $center) {
if ($this->authorizationChecker->isGranted($role->getRole(), $center) === false) {
if ($this->authorizationChecker->isGranted($role, $center) === false) {
//debugging
$this->logger->debug('user has no access to element', [
'method' => __METHOD__,
'type' => get_class($element),
'center' => $center->getName(),
'role' => $role->getRole(),
'role' => $role,
]);
///// Bypasse les autorisations qui empêche d'afficher les nouveaux exports
@@ -594,7 +594,7 @@ class ExportManager
'center' => $center,
'circles' => $this->authorizationHelper->getReachableScopes(
$this->user,
$element->requiredRole()->getRole(),
$element->requiredRole(),
$center
),
];