mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Temporarily disable ACL on new exports
This commit is contained in:
parent
2f42b9411a
commit
e323937405
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user