ソースを参照

修改其他权限BUG

chenw 7 年 前
コミット
42bbb7e19d

+ 1 - 1
base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/service/impl/RoleServiceImpl.java

@@ -167,7 +167,7 @@ public class RoleServiceImpl extends CommonBaseServiceImpl<RoleMapper, Role> imp
     private void setOtherPower(PowerDTO powerDTO, Long groupId, Long roleId, List<OtherPower> otherPowerList) {
         List<OtherPower> otherPowers = new ArrayList<OtherPower>();
         for (OtherPower otherPower : otherPowerList){
-            if (groupId.equals(otherPower.getGroupId())){
+            if (groupId.equals(otherPower.getGroupId()) && roleId.equals(otherPower.getRoleId())){
                 otherPowers.add(otherPower);
             }
         }