提交 134baf52 编写于 作者: K Kohsuke Kawaguchi

report the permission group since the permission name alone isn't unique

上级 a8c3a031
......@@ -23,7 +23,8 @@ public class AccessDeniedException2 extends AccessDeniedException {
}
public AccessDeniedException2(Throwable t, Authentication authentication, Permission permission) {
super(Messages.AccessDeniedException2_MissingPermission(authentication.getName(),permission.name), t);
super(Messages.AccessDeniedException2_MissingPermission(authentication.getName(),
permission.group.title+"/"+permission.name), t);
this.authentication = authentication;
this.permission = permission;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册