mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
fix: expired invites
This commit is contained in:
@@ -153,6 +153,11 @@ class InviteController extends Controller
|
||||
->withErrors(trans('user.invite-already-used'));
|
||||
}
|
||||
|
||||
if ($invite->expires_on < now()) {
|
||||
return to_route('invites.index', ['username' => $user->username])
|
||||
->withErrors(trans('user.invite-expired'));
|
||||
}
|
||||
|
||||
Mail::to($invite->email)->send(new InviteUser($invite));
|
||||
|
||||
return to_route('invites.index', ['username' => $user->username])
|
||||
|
||||
Reference in New Issue
Block a user