|
|
|
@ -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 {
|
|
|
|
|