eason.qian 7 years ago
parent ef27a1b1d0
commit 575f0b7725

@ -280,7 +280,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if (manager.getInteger("org_id")!=null){
JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
if (org.getInteger("parent_org_id")!=null){
if (org.getIntValue("parent_org_id")!=manager.getIntValue("org_id")){
if (org.getIntValue("org_id")!=manager.getIntValue("org_id")){
throw new ForbiddenException("The org of client is not belong to you");
}
}else {

Loading…
Cancel
Save