- team invitation fix

This commit is contained in:
Čarodej
2022-05-18 11:04:41 +02:00
parent 127f1dc4cf
commit 1d91d9759e
@@ -34,7 +34,9 @@ class InvitationIntoTeamFolder extends Notification implements ShouldQueue
{
$appTitle = get_settings('app_title') ?? 'VueFileManager';
$user = User::find($this->invitation->email);
// Try to find the user via email
$user = User::where('email', $this->invitation->email)
->first();
if ($user) {
return (new MailMessage)