Skip to content

Commit

Permalink
Fix error message when creation of item by type is prohibited (jenkin…
Browse files Browse the repository at this point in the history
…sci#9662)

Co-authored-by: Daniel Beck <[email protected]>
  • Loading branch information
daniel-beck and daniel-beck authored Aug 26, 2024
1 parent d9f3337 commit ffdd5be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/security/ACL.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}
/**
Expand Down Expand Up @@ -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()));
}
}

Expand Down

0 comments on commit ffdd5be

Please sign in to comment.