Commit 2b3949abd4aea526843cb6a6af7afe9b97d414c1
1 parent
eedbd96c
Exists in
master
Ajuste no método hasPermission para testar os dois parâmetros.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
impl/core/src/test/java/security/authorization/custom/CustomAuthorizer.java
... | ... | @@ -49,7 +49,7 @@ public class CustomAuthorizer implements Authorizer { |
49 | 49 | |
50 | 50 | @Override |
51 | 51 | public boolean hasPermission(String resource, String operation) { |
52 | - return "resource".equals(resource); | |
52 | + return "resource".equals(resource) && "operation".equals(operation); | |
53 | 53 | } |
54 | 54 | |
55 | 55 | ... | ... |