|
@@ -113,7 +113,8 @@ public class OrgApi extends ControllerSupport{
|
|
cn.com.qmth.examcloud.commons.web.security.bean.User accessUser = getAccessUser();
|
|
cn.com.qmth.examcloud.commons.web.security.bean.User accessUser = getAccessUser();
|
|
if(accessUser != null){
|
|
if(accessUser != null){
|
|
if(accessUser.getRootOrgId().longValue() != accessUser.getOrgId().longValue()){
|
|
if(accessUser.getRootOrgId().longValue() != accessUser.getOrgId().longValue()){
|
|
- return new ResponseEntity(orgRepo.findById(parentId), HttpStatus.OK);
|
|
|
|
|
|
+ return new ResponseEntity(orgRepo.findById(accessUser.getOrgId()), HttpStatus.OK);
|
|
|
|
+ // return new ResponseEntity(orgRepo.findById(parentId), HttpStatus.OK);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return new ResponseEntity(orgRepo.findByParentId(parentId), HttpStatus.OK);
|
|
return new ResponseEntity(orgRepo.findByParentId(parentId), HttpStatus.OK);
|