fix: add missing translation functions to controllers

This commit is contained in:
2022-03-31 16:54:39 +01:00
committed by Miguel Nogueira
parent a7c76ad7b8
commit 952e307f46
6 changed files with 17 additions and 17 deletions

View File

@@ -45,7 +45,7 @@ class BanController extends Controller
if (config('demo.is_enabled')) {
return redirect()
->back()
->with('error', 'This feature is disabled');
->with('error', __('This feature is disabled'));
}
$this->authorize('create', [Ban::class, $user]);
@@ -69,7 +69,7 @@ class BanController extends Controller
if (config('demo.is_enabled')) {
return redirect()
->back()
->with('error', 'This feature is disabled');
->with('error', __('This feature is disabled'));
}
$this->authorize('delete', $user->bans);