Actualizacuion de Rama Kquiroz
This commit is contained in:
@@ -14,15 +14,12 @@ class IsUser
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
//AQUI AGREGO LOS DIFERENTES TIPOS DE USUARIOS
|
||||
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (Auth::check() &&
|
||||
(Auth::user()->user_type == 'customer' ||
|
||||
Auth::user()->user_type == 'seller' ||
|
||||
Auth::user()->user_type == 'delivery_boy'||
|
||||
Auth::user()->user_type == 'repair') ) {
|
||||
Auth::user()->user_type == 'delivery_boy') ) {
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user