mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Fixed #14935 - user does not exist
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
30c1e1e86a
commit
55e1326164
|
@ -338,7 +338,7 @@ class UsersController extends Controller
|
|||
|
||||
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc');
|
||||
|
||||
if (($user) && ($user->deleted_at = '')) {
|
||||
if (($user) && ($user->deleted_at == '')) {
|
||||
// Delete the user
|
||||
$user->delete();
|
||||
return redirect()->route('users.index')->with('success', trans('admin/users/message.success.delete'));
|
||||
|
|
Loading…
Reference in a new issue