Skip to content

Commit 5e458e3

Browse files
committed
Fix: user id in middleware
1 parent c62c160 commit 5e458e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/CheckPermission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CheckPermission
2323
public function handle($request, Closure $next)
2424
{
2525
// Get the authenticated user
26-
$user = ExtendedUser::find(1);
26+
$user = ExtendedUser::find(Auth::id());
2727

2828
// Get the current route name
2929
$routeName = $request->route()->getName();

0 commit comments

Comments
 (0)