Merge branch 'develop' into 5.8-dev

This commit is contained in:
James Cole
2022-09-24 07:03:03 +02:00
16 changed files with 331 additions and 305 deletions

View File

@@ -45,17 +45,15 @@ class AdminEventHandler
*
* @return bool
*/
public function sendTestMessage(AdminRequestedTestMessage $event): bool
public function sendTestMessage(AdminRequestedTestMessage $event): void
{
/** @var UserRepositoryInterface $repository */
$repository = app(UserRepositoryInterface::class);
// do some validation.
if (!$repository->hasRole($event->user, 'owner')) {
return true;
return;
}
Notification::send($event->user, new TestNotification($event->user->email));
return true;
}
}