Commit 5a11d9bf by 蒋勇

for allocate

parent 9cd53b62
......@@ -89,7 +89,7 @@ class UserDao extends Dao {
w["isAdmin"] = false;
w["company_id"] = obj.company_id;
// 为空说明是管理员,不需设置组织结构过滤
if (obj.opath && obj.opath != "") {
if (obj.opath && obj.opath != "" && !w.isAllocated) {
w["opath"] = { [this.db.Op.like]: `%${obj.opath}%` }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment