Commit 39900abd authored by bsatyanarayana-nisum-com's avatar bsatyanarayana-nisum-com Committed by tdutta-nisum-com

MT-126_5 :SNS :: DL_should_see_only_his_account_projects (#142)

parent 227b27a6
...@@ -1086,9 +1086,11 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -1086,9 +1086,11 @@ public class ProjectServiceImpl implements ProjectService {
Account account = null; Account account = null;
Domains domain =null; Domains domain =null;
HashMap<Object, Object> projectMap = new HashMap<>(); HashMap<Object, Object> projectMap = null;
for(Project obj : prjts) { for(Project obj : prjts) {
projectMap = new HashMap<>();
account = accountRepo.findByAccountId(obj.getAccountId()); account = accountRepo.findByAccountId(obj.getAccountId());
domain = domainRepo.findByDomainId(obj.getDomainId()); domain = domainRepo.findByDomainId(obj.getDomainId());
......
...@@ -573,7 +573,7 @@ public class UserServiceImpl implements UserService { ...@@ -573,7 +573,7 @@ public class UserServiceImpl implements UserService {
if(null != roleSet && !roleSet.isEmpty() && MyTimeUtils.INT_ZERO < roleSet.size() ) { if(null != roleSet && !roleSet.isEmpty() && MyTimeUtils.INT_ZERO < roleSet.size() ) {
if( roleSet.contains(roleName) ) { if( roleSet.contains(roleName) ) {
flag = false; flag = true;
} }
} }
......
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