We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09fe607 commit 9c33a86Copy full SHA for 9c33a86
samples/xml/tutorial/src/main/java/bigbank/BankService.java
@@ -23,7 +23,7 @@ public interface BankService {
23
24
Account[] findAccounts();
25
26
- @PreAuthorize("hasRole('supervisor') or "
27
- + "hasRole('teller') and (#account.balance + #amount >= -#account.overdraft)")
+ @PreAuthorize("hasAuthority('supervisor') or "
+ + "hasAuthority('teller') and (#account.balance + #amount >= -#account.overdraft)")
28
Account post(Account account, double amount);
29
}
0 commit comments