#1: A few more fixes to the user routes
This commit is contained in:
parent
2dce62014a
commit
3fad3f08cc
@ -89,7 +89,7 @@ class UserController extends Controller
|
|||||||
$user->is_admin = (strtolower($request->get('is_admin')) == 'on');
|
$user->is_admin = (strtolower($request->get('is_admin')) == 'on');
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
return redirect(route('user.index'));
|
return redirect(route('users.index'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -169,7 +169,7 @@ class UserController extends Controller
|
|||||||
|
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
return redirect(route('user.index'));
|
return redirect(route('users.index'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -192,7 +192,7 @@ class UserController extends Controller
|
|||||||
if ($user->id == Auth::user()->id)
|
if ($user->id == Auth::user()->id)
|
||||||
{
|
{
|
||||||
$request->session()->flash('warning', trans('admin.cannot_delete_own_user_account'));
|
$request->session()->flash('warning', trans('admin.cannot_delete_own_user_account'));
|
||||||
return redirect(route('user.index'));
|
return redirect(route('users.index'));
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -210,6 +210,6 @@ class UserController extends Controller
|
|||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect(route('user.index'));
|
return redirect(route('users.index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user