mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
getItemByFullName shouldn't bypass security check
This commit is contained in:
1 parent
b5a067e09f
commit
1bdecb463b
1 file changed
+3
@@ -2095,6 +2095,9 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
|
||||
if(!(item instanceof ItemGroup))
|
||||
return null; // this item can't have any children
|
||||
|
||||
if (!item.hasPermission(Item.READ))
|
||||
return null;
|
||||
|
||||
parent = (ItemGroup) item;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user