fix: fix error message for denied invite snot being shown
Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
@@ -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.'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user