Issue 2695

Introduces localisation for API errors
This commit is contained in:
Dominic Guhl
2019-10-26 15:07:54 +02:00
parent 18310641aa
commit b4d565400e
32 changed files with 511 additions and 24 deletions

View File

@@ -57,7 +57,7 @@ class ConfigurationController extends Controller
$admin = auth()->user();
if (!$this->repository->hasRole($admin, 'owner')) {
throw new FireflyException('No access to method.'); // @codeCoverageIgnore
throw new FireflyException(trans('error_no_access')); // @codeCoverageIgnore
}
return $next($request);