FEAT: Fixed error permission on basic-data Module
This commit is contained in:
@@ -16,7 +16,10 @@
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->user = auth()->user();
|
||||
$this->middleware(function ($request, $next) {
|
||||
$this->user = auth()->user();
|
||||
return $next($request);
|
||||
});
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
{
|
||||
protected $user;
|
||||
|
||||
public function __construct(){
|
||||
$this->user = auth()->user();
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function ($request, $next) {
|
||||
$this->user = auth()->user();
|
||||
return $next($request);
|
||||
});
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
{
|
||||
protected $user;
|
||||
|
||||
public function __construct(){
|
||||
$this->user = auth()->user();
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function ($request, $next) {
|
||||
$this->user = auth()->user();
|
||||
return $next($request);
|
||||
});
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
||||
Reference in New Issue
Block a user