오류수정
This commit is contained in:
parent
cc730f6e6b
commit
b2861faa24
@ -70,8 +70,12 @@ public class ResourceManagerController
|
|||||||
String strGrpId = tokenInfo.getStrGRP_ID();
|
String strGrpId = tokenInfo.getStrGRP_ID();
|
||||||
String strRole = tokenInfo.getAuthorities();
|
String strRole = tokenInfo.getAuthorities();
|
||||||
|
|
||||||
|
log.info("strGrpId [{}]", strGrpId);
|
||||||
|
log.info("strRole [{}]" , strRole);
|
||||||
|
log.info("순서 [{}]" , strRole.indexOf("ROLE_ADMIN"));
|
||||||
|
|
||||||
// 본사그룹 혹은 관리자 가 아닌경우 해당그룹자산만 조회 가능
|
// 본사그룹 혹은 관리자 가 아닌경우 해당그룹자산만 조회 가능
|
||||||
if(strGrpId != "GROUP_00000000000000" && strRole != "ROLE_ADMIN")
|
if(!strGrpId.equals("GROUP_00000000000000") && strRole.indexOf("ROLE_ADMIN")<0)
|
||||||
{
|
{
|
||||||
requestMap.put("strGrpId", strGrpId);
|
requestMap.put("strGrpId", strGrpId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,8 +77,12 @@ public class ReportCheckController
|
|||||||
String strGrpId = tokenInfo.getStrGRP_ID();
|
String strGrpId = tokenInfo.getStrGRP_ID();
|
||||||
String strRole = tokenInfo.getAuthorities();
|
String strRole = tokenInfo.getAuthorities();
|
||||||
|
|
||||||
|
log.info("strGrpId [{}]", strGrpId);
|
||||||
|
log.info("strRole [{}]" , strRole);
|
||||||
|
log.info("순서 [{}]" , strRole.indexOf("ROLE_ADMIN"));
|
||||||
|
|
||||||
// 본사그룹 혹은 관리자 가 아닌경우 해당그룹자산만 조회 가능
|
// 본사그룹 혹은 관리자 가 아닌경우 해당그룹자산만 조회 가능
|
||||||
if(strGrpId != "GROUP_00000000000000" && strRole != "ROLE_ADMIN")
|
if(!strGrpId.equals("GROUP_00000000000000") && strRole.indexOf("ROLE_ADMIN")<0)
|
||||||
{
|
{
|
||||||
requestMap.put("strGrpId", strGrpId);
|
requestMap.put("strGrpId", strGrpId);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user