Temporarily disable ACL on new exports

This commit is contained in:
Mathieu Jaumotte 2022-07-14 10:26:26 +02:00
parent 2f42b9411a
commit e323937405
3 changed files with 5 additions and 6 deletions

View File

@ -568,6 +568,10 @@ class ExportManager
'role' => $role->getRole(),
]);
///// Bypasse les autorisations qui empêche d'afficher les nouveaux exports
return true;
///// TODO supprimer le return true
return false;
}
}

View File

@ -38,7 +38,6 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
self::TOGGLE_CONFIDENTIAL_ALL,
self::TOGGLE_INTENSITY,
self::RE_OPEN_COURSE,
self::STATS,
];
/**
@ -220,10 +219,6 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
return $token->getUser() === $subject->getUser();
}
if (self::STATS === $attribute) {
return true;
}
}
return $this->voterHelper->voteOnAttribute($attribute, $subject, $token);

View File

@ -1,5 +1,5 @@
services:
chill.person.export.export_count_person:
chill.person.export.count_person:
class: Chill\PersonBundle\Export\Export\CountPerson
arguments:
- "@doctrine.orm.entity_manager"