Reordered withTrashed() and find()

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-05 09:57:24 +01:00
parent 832ceeba56
commit 09e94ec176

View file

@ -227,7 +227,7 @@ class UsersController extends Controller
$permissions = $request->input('permissions', []);
app('request')->request->set('permissions', $permissions);
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->find($id)->withTrashed();
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->withTrashed()->find($id);
// User is valid - continue...
if ($user) {