diff --git a/samples/xml/tutorial/src/main/java/bigbank/BankService.java b/samples/xml/tutorial/src/main/java/bigbank/BankService.java index d9558e27d3..0e8f6014bc 100644 --- a/samples/xml/tutorial/src/main/java/bigbank/BankService.java +++ b/samples/xml/tutorial/src/main/java/bigbank/BankService.java @@ -23,7 +23,7 @@ public interface BankService { Account[] findAccounts(); - @PreAuthorize("hasRole('supervisor') or " - + "hasRole('teller') and (#account.balance + #amount >= -#account.overdraft)") + @PreAuthorize("hasAuthority('supervisor') or " + + "hasAuthority('teller') and (#account.balance + #amount >= -#account.overdraft)") Account post(Account account, double amount); }