parent
1ad57adccc
commit
ca5fb78ee1
|
@ -25,6 +25,11 @@ import org.springframework.stereotype.Component;
|
|||
*/
|
||||
@Component
|
||||
public class Authz {
|
||||
|
||||
public boolean check(boolean result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
public boolean check(long id) {
|
||||
return id % 2 == 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue