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