mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 00:32:14 +00:00
Authz check(boolean result)
Issue: gh-5016
This commit is contained in:
parent
1ad57adccc
commit
ca5fb78ee1
@ -25,6 +25,11 @@ import org.springframework.stereotype.Component;
|
|||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class Authz {
|
public class Authz {
|
||||||
|
|
||||||
|
public boolean check(boolean result) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean check(long id) {
|
public boolean check(long id) {
|
||||||
return id % 2 == 0;
|
return id % 2 == 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user