diff --git a/app/Http/Controllers/InvitationController.php b/app/Http/Controllers/InvitationController.php index b6f2436..6016e05 100644 --- a/app/Http/Controllers/InvitationController.php +++ b/app/Http/Controllers/InvitationController.php @@ -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.')); }