mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
Implements right "see confidential course" on method findByPerson
Add unit tests for that
This commit is contained in:
@@ -33,6 +33,9 @@ interface AccompanyingPeriodACLAwareRepositoryInterface
|
||||
|
||||
public function countByUserOpenedAccompanyingPeriod(?User $user): int;
|
||||
|
||||
/**
|
||||
* @return array<AccompanyingPeriod>
|
||||
*/
|
||||
public function findByPerson(
|
||||
Person $person,
|
||||
string $role,
|
||||
@@ -45,14 +48,19 @@ interface AccompanyingPeriodACLAwareRepositoryInterface
|
||||
* @param array|UserJob[] $jobs if empty, does not take this argument into account
|
||||
* @param array|Scope[] $services if empty, does not take this argument into account
|
||||
*
|
||||
* @return array|AccompanyingPeriod[]
|
||||
* @return list<AccompanyingPeriod>
|
||||
*/
|
||||
public function findByUnDispatched(array $jobs, array $services, array $administrativeLocations, ?int $limit = null, ?int $offset = null): array;
|
||||
|
||||
/**
|
||||
* @param array|PostalCode[] $postalCodes
|
||||
* @return list<AccompanyingPeriod>
|
||||
*/
|
||||
public function findByUserAndPostalCodesOpenedAccompanyingPeriod(?User $user, array $postalCodes, array $orderBy = [], int $limit = 0, int $offset = 50): array;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @return list<AccompanyingPeriod>
|
||||
*/
|
||||
public function findByUserOpenedAccompanyingPeriod(?User $user, array $orderBy = [], int $limit = 0, int $offset = 50): array;
|
||||
}
|
||||
|
Reference in New Issue
Block a user