fix: fix error message for denied invite snot being shown

Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
2025-08-07 20:25:52 +01:00
parent 6739fde41a
commit 0de1be64b5

View File

@@ -100,11 +100,13 @@ class InvitationController extends Controller
$invitation->save();
return redirect()
->with('success', __('Invitation denied. No notifications were sent. This user cannot be invited again.'))
->back();
->back()
->with('success', __('Invitation denied. No notifications were sent. This user cannot be invited again.'));
}
return redirect()
->back()
->with('error', __('This invitation could not be denied because it is either already approved, expired, or in an otherwise invalid state.'));
}