File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -1375,21 +1375,18 @@ private AuthorizedProjectsResolver getCustomAuthorizedProjectsResolverOrDefault(
13751375 private CustomActionAuthorizationStep getCustomActionAuthorizationStepOrDefault (
13761376 SecurityExtension .SecurityComponents extensionComponents
13771377 ) {
1378- var customActionAuthorizationStep = findValueFromExtensions (
1379- "action authorization step" ,
1380- extension -> {
1381- var actionAuthorizationStep = extension .getCustomActionAuthorizationStep (extensionComponents );
1382- if (actionAuthorizationStep != null && isInternalExtension (extension ) == false ) {
1383- throw new IllegalStateException (
1384- "The ["
1378+ var customActionAuthorizationStep = findValueFromExtensions ("action authorization step" , extension -> {
1379+ var actionAuthorizationStep = extension .getCustomActionAuthorizationStep (extensionComponents );
1380+ if (actionAuthorizationStep != null && isInternalExtension (extension ) == false ) {
1381+ throw new IllegalStateException (
1382+ "The ["
13851383 + extension .getClass ().getName ()
13861384 + "] extension tried to install a CustomActionAuthorizationStep. This functionality is not available to "
13871385 + "external extensions."
1388- );
1389- }
1390- return actionAuthorizationStep ;
1386+ );
13911387 }
1392- );
1388+ return actionAuthorizationStep ;
1389+ });
13931390 return customActionAuthorizationStep == null ? new CustomActionAuthorizationStep .Default () : customActionAuthorizationStep ;
13941391 }
13951392
You can’t perform that action at this time.
0 commit comments