diff --git a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/AuthorizeValidatorConfig.java b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/AuthorizeValidatorConfig.java index ee012c73e..da8cb3663 100644 --- a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/AuthorizeValidatorConfig.java +++ b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/AuthorizeValidatorConfig.java @@ -18,8 +18,10 @@ public interface AuthorizeValidatorConfig { AuthorizeValidatorConfig addExpression(String expression, String language); + @Deprecated AuthorizeValidatorConfig setApiSupport(boolean apiSupport); + @Deprecated boolean isApiSupport(); boolean isEmpty(); diff --git a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/annotation/Authorize.java b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/annotation/Authorize.java index 5f0496903..23c2b9147 100644 --- a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/annotation/Authorize.java +++ b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/annotation/Authorize.java @@ -52,6 +52,7 @@ * * @return */ + @Deprecated boolean api() default false; /** diff --git a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/validator/SimpleAuthorizeValidatorConfig.java b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/validator/SimpleAuthorizeValidatorConfig.java index e5b2d5907..a796f36af 100644 --- a/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/validator/SimpleAuthorizeValidatorConfig.java +++ b/hsweb-web-core/src/main/java/org/hsweb/web/core/authorize/validator/SimpleAuthorizeValidatorConfig.java @@ -20,7 +20,7 @@ public class SimpleAuthorizeValidatorConfig implements AuthorizeValidatorConfig protected Set actions; protected Set expressions = new LinkedHashSet<>(); protected Authorize.MOD mod; - protected boolean apiSupport; + protected boolean apiSupport; @Override public AuthorizeValidatorConfig setApiSupport(boolean apiSupport) { @@ -92,7 +92,8 @@ public Set getExpressions() { } public boolean isApiSupport() { - return apiSupport; + return true; + // return apiSupport; } public void setExpressions(Set expressions) {