aboutsummaryrefslogtreecommitdiff
path: root/utils/mangle-jobs/project-based-sec-add.mangle
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mangle-jobs/project-based-sec-add.mangle')
-rw-r--r--utils/mangle-jobs/project-based-sec-add.mangle17
1 files changed, 0 insertions, 17 deletions
diff --git a/utils/mangle-jobs/project-based-sec-add.mangle b/utils/mangle-jobs/project-based-sec-add.mangle
deleted file mode 100644
index d59faaf..0000000
--- a/utils/mangle-jobs/project-based-sec-add.mangle
+++ /dev/null
@@ -1,17 +0,0 @@
-# Add default project-based security setting for project (anon read access)
-
-from lxml.etree import fromstring
-from mangle_helper import *
-
-new_node = """\
- <hudson.security.AuthorizationMatrixProperty>
- <permission>hudson.model.Item.Read:anonymous</permission>
- </hudson.security.AuthorizationMatrixProperty>
-"""
-
-def mangle(tree):
- if tree.xpath("//properties/hudson.security.AuthorizationMatrixProperty"):
- # Needed config already there - don't change
- return False
-
- add_child(tree, "/project/properties", new_node)