One more small fix

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-22 16:38:29 +01:00
parent 55e1326164
commit b82770d0a8

View file

@ -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