tutorial hasRole->hasAuthority

Closes gh-8796
This commit is contained in:
Rob Winch 2020-07-07 15:06:20 -05:00
parent 09fe6071e1
commit 9c33a862d4
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}