Procházet zdrojové kódy

当merge为空时,默认合并权限

zhou-hao před 7 roky
rodič
revize
1f0249c49b

+ 1 - 1
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-service/hsweb-system-authorization-service-simple/src/main/java/org/hswebframework/web/service/authorization/simple/SimpleAuthorizationSettingService.java

@@ -374,7 +374,7 @@ public class SimpleAuthorizationSettingService extends GenericEntityService<Auth
             Collections.sort(details);
             for (AuthorizationSettingDetailEntity detail : details) {
                 //如果指定不合并相同的配置,则清空之前的配置
-                if (!Boolean.TRUE.equals(detail.getMerge())) {
+                if (Boolean.FALSE.equals(detail.getMerge())) {
                     actions.clear();
                     dataAccessConfigs.clear();
                 }