mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
take into account all reachble centers by default for authorization
This commit is contained in:
@@ -75,9 +75,8 @@ class ExportController extends Controller
|
||||
// first check for ACL
|
||||
$exportManager = $this->get('chill.main.export_manager');
|
||||
$export = $exportManager->getExport($alias);
|
||||
$centers = $this->get('chill.main.security.authorization.helper')
|
||||
->getReachableCenters($this->getUser(), $export->requiredRole());
|
||||
if ($exportManager->isGrantedForElement($export, $centers) === FALSE) {
|
||||
|
||||
if ($exportManager->isGrantedForElement($export) === FALSE) {
|
||||
throw $this->createAccessDeniedException('The user does not have access to this export');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user