mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
One more small fix
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
55e1326164
commit
b82770d0a8
|
@ -336,7 +336,7 @@ class UsersController extends Controller
|
|||
|
||||
$this->authorize('delete', User::class);
|
||||
|
||||
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc');
|
||||
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->first();
|
||||
|
||||
if (($user) && ($user->deleted_at == '')) {
|
||||
// Delete the user
|
||||
|
|
Loading…
Reference in a new issue