Event identifiers for anonymizations
This commit is contained in:
@@ -33,6 +33,11 @@ class EventRepository {
|
||||
return $events[0] ?? null;
|
||||
}
|
||||
|
||||
public function getByIdentifier(string $identifier, bool $accessCheck = true) : ?Event {
|
||||
$events = self::getEventsByCriteria(['identifier' => $identifier], $accessCheck);
|
||||
return $events[0] ?? null;
|
||||
}
|
||||
|
||||
public function getEventsByCriteria(array $criteria, $accessCheck = true) : array {
|
||||
$tenant = app('tenant');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user