Skip to content

Commit 9c33a86

Browse files
committed
tutorial hasRole->hasAuthority
Closes gh-8796
1 parent 09fe607 commit 9c33a86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/xml/tutorial/src/main/java/bigbank/BankService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface BankService {
2323

2424
Account[] findAccounts();
2525

26-
@PreAuthorize("hasRole('supervisor') or "
27-
+ "hasRole('teller') and (#account.balance + #amount >= -#account.overdraft)")
26+
@PreAuthorize("hasAuthority('supervisor') or "
27+
+ "hasAuthority('teller') and (#account.balance + #amount >= -#account.overdraft)")
2828
Account post(Account account, double amount);
2929
}

0 commit comments

Comments
 (0)