mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
[FIXED HUDSON-2930] FULL_CONTROL right is no longer FULL_CONTROL at all.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14845 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
0ab339322b
commit
f57b06cebf
2 files changed
+5
-3
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
package hudson.security;
|
||||
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.model.Hudson;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -28,8 +29,8 @@ public class FullControlOnceLoggedInAuthorizationStrategy extends AuthorizationS
|
||||
private static final SparseACL THE_ACL = new SparseACL(null);
|
||||
|
||||
static {
|
||||
THE_ACL.add(ACL.EVERYONE,Permission.FULL_CONTROL,true);
|
||||
THE_ACL.add(ACL.ANONYMOUS,Permission.FULL_CONTROL,false);
|
||||
THE_ACL.add(ACL.EVERYONE,Hudson.ADMINISTER,true);
|
||||
THE_ACL.add(ACL.ANONYMOUS,Hudson.ADMINISTER,false);
|
||||
THE_ACL.add(ACL.ANONYMOUS,Permission.READ,true);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package hudson.security;
|
||||
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.model.Hudson;
|
||||
import org.acegisecurity.acls.sid.GrantedAuthoritySid;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import net.sf.json.JSONObject;
|
||||
@@ -15,7 +16,7 @@ import java.util.Collections;
|
||||
public final class LegacyAuthorizationStrategy extends AuthorizationStrategy {
|
||||
private static final ACL LEGACY_ACL = new SparseACL(null) {{
|
||||
add(EVERYONE,Permission.READ,true);
|
||||
add(new GrantedAuthoritySid("admin"),Permission.FULL_CONTROL,true);
|
||||
add(new GrantedAuthoritySid("admin"), Hudson.ADMINISTER,true);
|
||||
}};
|
||||
|
||||
public ACL getRootACL() {
|
||||
|
||||
Reference in new issue
Block a user