Skip to content

Commit 937ec7c

Browse files
committed
Adding the action to the patterns if there are no descriptors
1 parent 57e5e26 commit 937ec7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/ApplicationPrivilege.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private static ApplicationPrivilege resolve(String application, Set<String> name
193193
if (descriptor != null) {
194194
patterns.addAll(descriptor.getActions());
195195
} else {
196-
throw new IllegalArgumentException("unknown application privilege [" + name + "]");
196+
patterns.add(name);
197197
}
198198
} else {
199199
actions.add(name);

0 commit comments

Comments
 (0)