[feature] use internal services to check for acl on exports

This commit is contained in:
2022-09-08 13:47:35 +02:00
parent 211a80e9be
commit e379d8adb5
5 changed files with 42 additions and 56 deletions

View File

@@ -30,6 +30,18 @@ final class CenterRepository implements ObjectRepository
return $this->repository->find($id, $lockMode, $lockVersion);
}
/**
* Return all active centers
*
* Note: this is a teaser: active will comes later on center entity
*
* @return Center[]
*/
public function findActive(): array
{
return $this->findAll();
}
/**
* @return Center[]
*/