Merge branch '6.0.x'

Closes gh-13083
This commit is contained in:
Josh Cummings
2023-04-24 12:49:56 -06:00
2 changed files with 6 additions and 1 deletions

View File

@@ -266,4 +266,9 @@ public class AuthorityAuthorizationManagerTests {
assertThat(manager.check(authentication, object).isGranted()).isTrue();
}
// gh-13079
@Test
void hasAnyRoleWhenEmptyRolePrefixThenNoException() {
AuthorityAuthorizationManager.hasAnyRole("", new String[] { "USER" });
}
}