folder creation fix

This commit is contained in:
Čarodej
2022-03-17 09:38:49 +01:00
parent 4b899d8f29
commit 9c040cfe48
5 changed files with 9 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ class AdminCheck
{
// Check if user have access to administration settings
if ($request->user()->role !== 'admin') {
abort(403, 'You don\'t have access for this operation!');
return response("You don't have access for this operation!", 403);
}
return $next($request);