mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 23:55:52 +00:00
[FIXED HUDSON-1875] layout.jelly had a very error prone permission check that silentely passes when the "it" object is not an AccessControlled object.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10313 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b5178dee02
commit
f34e35e245
2 files changed
+24
No files matched your search
@@ -186,6 +186,8 @@ public final class PluginManager extends AbstractModelObject {
|
||||
}
|
||||
|
||||
public void doProxyConfigure(@QueryParameter("proxy.server") String server, @QueryParameter("proxy.port") String port, StaplerResponse rsp) throws IOException {
|
||||
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
|
||||
|
||||
Hudson hudson = Hudson.getInstance();
|
||||
server = Util.fixEmptyAndTrim(server);
|
||||
if(server==null) {
|
||||
|
||||
Reference in new issue
Block a user