FEAT: Fixed error permission on basic-data Module

This commit is contained in:
putrakuningan
2025-06-21 11:28:59 +07:00
parent 0a4f39cca1
commit 5f9f07657f
3 changed files with 16 additions and 5 deletions

View File

@@ -16,7 +16,10 @@
public function __construct() public function __construct()
{ {
$this->middleware(function ($request, $next) {
$this->user = auth()->user(); $this->user = auth()->user();
return $next($request);
});
} }
public function index() public function index()

View File

@@ -14,8 +14,12 @@
{ {
protected $user; protected $user;
public function __construct(){ public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = auth()->user(); $this->user = auth()->user();
return $next($request);
});
} }
public function index() public function index()

View File

@@ -14,8 +14,12 @@
{ {
protected $user; protected $user;
public function __construct(){ public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = auth()->user(); $this->user = auth()->user();
return $next($request);
});
} }
public function index() public function index()