diff --git a/src/Controller.php b/src/Controller.php index ba8aaaa..cb55c9d 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -17,7 +17,7 @@ trait Controller $this->guard = $guard; app('auth')->shouldUse($guard); $this->middleware(Authenticate::class); -// $this->middleware(CheckRole::class); + $this->middleware(CheckRole::class); $this->user = app('request')->user($guard); } diff --git a/src/Middleware/Authenticate.php b/src/Middleware/Authenticate.php index 07e43b9..db15478 100644 --- a/src/Middleware/Authenticate.php +++ b/src/Middleware/Authenticate.php @@ -51,9 +51,7 @@ class Authenticate ], ]); // } else { -// // -// exit('jump'); -//// return redirect(app('pd.auth')->connect($redirect)); +// return redirect(app('pd.auth')->connect($redirect)); // } }