diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index b5bfed309e20172d9351a0763a810bcde1884b1e..dc6d774a3062e88685b9a1f296f009bbd2fcd583 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -922,6 +922,7 @@ public abstract class AbstractProject
,R extends A * Serves the workspace files. */ public void doWs( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, InterruptedException { + checkPermission(AbstractProject.WORKSPACE); FilePath ws = getWorkspace(); if(!ws.exists()) { // if there's no workspace, report a nice error message @@ -1009,6 +1010,7 @@ public abstract class AbstractProject
,R extends A
private static final Logger LOGGER = Logger.getLogger(AbstractProject.class.getName());
public static final Permission BUILD = new Permission(PERMISSIONS, "Build", Permission.UPDATE);
+ public static final Permission WORKSPACE = new Permission(PERMISSIONS, "Workspace", Permission.READ);
/**
* Permission to abort a build. For now, let's make it the same as {@link #BUILD}
*/
diff --git a/core/src/main/resources/hudson/maven/MavenModuleSet/index.jelly b/core/src/main/resources/hudson/maven/MavenModuleSet/index.jelly
index 84fba8cbef958b08582b806936346e0cbfb91141..e0ae6b45e823fefc4f7ad1510aa33b3fba07392a 100644
--- a/core/src/main/resources/hudson/maven/MavenModuleSet/index.jelly
+++ b/core/src/main/resources/hudson/maven/MavenModuleSet/index.jelly
@@ -14,7 +14,7 @@
${act.displayName}
-
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+