From ffdd5be9a3e63192baa93e0e89bdbec2e0c7bb00 Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Tue, 27 Aug 2024 01:43:31 +0200 Subject: [PATCH] Fix error message when creation of item by type is prohibited (#9662) Co-authored-by: Daniel Beck --- core/src/main/java/hudson/security/ACL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/security/ACL.java b/core/src/main/java/hudson/security/ACL.java index 039820ef22f3..03d2a21beba0 100644 --- a/core/src/main/java/hudson/security/ACL.java +++ b/core/src/main/java/hudson/security/ACL.java @@ -237,7 +237,7 @@ public final void checkCreatePermission(@NonNull ItemGroup c, } if (!hasCreatePermission2(a, c, d)) { throw new AccessDeniedException(Messages.AccessDeniedException2_MissingPermission(a.getName(), - Item.CREATE.group.title + "/" + Item.CREATE.name + Item.CREATE + "/" + d.getDisplayName())); + Item.CREATE.group.title + "/" + Item.CREATE.name + "/" + d.getDisplayName())); } } /** @@ -290,7 +290,7 @@ public final void checkCreatePermission(@NonNull ViewGroup c, } if (!hasCreatePermission2(a, c, d)) { throw new AccessDeniedException(Messages.AccessDeniedException2_MissingPermission(a.getName(), - View.CREATE.group.title + "/" + View.CREATE.name + View.CREATE + "/" + d.getDisplayName())); + View.CREATE.group.title + "/" + View.CREATE.name + "/" + d.getDisplayName())); } }