Skip to content

Commit

Permalink
Fix class naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kipjr committed Jan 21, 2024
1 parent 323fd18 commit 15ad0f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/MensaAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MensaAdminController extends MensaCookController
public function __construct()
{
parent::__construct();
$this->middleware('isAdmin');
$this->middleware('IsAdmin');
}

public function showLogs(Request $request, $mensaId){
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ class Kernel extends HttpKernel
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'isAdmin' => \App\Http\Middleware\isAdmin::class,
'IsAdmin' => \App\Http\Middleware\IsAdmin::class,
];
}
2 changes: 1 addition & 1 deletion app/Http/Middleware/IsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Closure;
use Illuminate\Support\Facades\Auth;

class isAdmin
class IsAdmin
{
/**
* Handle an incoming request.
Expand Down

0 comments on commit 15ad0f7

Please sign in to comment.