This commit is contained in:
mzl
2025-11-13 11:47:07 +08:00
parent 00ab988469
commit f0abdca45a
+2 -1
View File
@@ -215,8 +215,9 @@ class UserService
$config['where']['status'] = $p['status']; $config['where']['status'] = $p['status'];
} }
$config['with']= ['reportToInfo'];
if (!in_array(1, $request->user->role_ids)) { if (!in_array(1, $request->user->role_ids)) {
$config['with']= ['reportToInfo']; $config['where']['reportToInfo.id'] = $request->user->uid;
} }
// $config['dataLimit']['type'] = 'relation'; // $config['dataLimit']['type'] = 'relation';