Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-29815] Add disabling of permission inheritance for Folders
This adds the same tick-box to disable inheritance of global permissions to Folders as already exists for Projects. Consistency! Support for the Folder plugin seems to originally have been done by copy-pasting in an only slightly modified version of an ancient copy of the AuthorizationMatrixProperty.java file. This commit is as such very similar to the patch Kohsuke once applied to the Project's AMP: 6411fff Now, these two files are close to identical, and should be refactored into one class in my opinion: src/main/java/hudson/security/AuthorizationMatrixProperty.java src/main/java/com/cloudbees/hudson/plugins/folder/properties/AuthorizationMatrixProperty.java
- Loading branch information
1 parent
2ab009d
commit 63d6897
Showing
5 changed files
with
102 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
.../hudson/plugins/folder/properties/AuthorizationMatrixProperty/help-blocksInheritance.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
If checked, the global configuration matrix will not be inherited. | ||
This allows you to configure a Folder that has a more strict access control list than the rest of the global permission set. | ||
<br /> | ||
<br /> | ||
<b>WARNING</b>: because the parent ACL will not be inherited, it is possible to revoke your own configuration access accidentally. | ||
If you enable this setting, please also remember to grant yourself or your group configuration access so that you do not lock yourself out of the Folder. | ||
Otherwise the only ways to get back in will be to disable project-based security in global configuration, or manually edit the permissions list in the project's XML configuration. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters