mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
removes admin user and group configuration in favor of permissions
This commit is contained in:
@@ -95,16 +95,6 @@ public class ScmConfiguration implements Configuration {
|
||||
@SuppressWarnings("WeakerAccess") // This might be needed for permission checking
|
||||
public static final String PERMISSION = "global";
|
||||
|
||||
@XmlElement(name = "admin-groups")
|
||||
@XmlJavaTypeAdapter(XmlSetStringAdapter.class)
|
||||
private Set<String> adminGroups;
|
||||
|
||||
|
||||
@XmlElement(name = "admin-users")
|
||||
@XmlJavaTypeAdapter(XmlSetStringAdapter.class)
|
||||
private Set<String> adminUsers;
|
||||
|
||||
|
||||
@XmlElement(name = "base-url")
|
||||
private String baseUrl;
|
||||
|
||||
@@ -211,8 +201,6 @@ public class ScmConfiguration implements Configuration {
|
||||
this.dateFormat = other.dateFormat;
|
||||
this.pluginUrl = other.pluginUrl;
|
||||
this.anonymousAccessEnabled = other.anonymousAccessEnabled;
|
||||
this.adminUsers = other.adminUsers;
|
||||
this.adminGroups = other.adminGroups;
|
||||
this.enableProxy = other.enableProxy;
|
||||
this.proxyPort = other.proxyPort;
|
||||
this.proxyServer = other.proxyServer;
|
||||
@@ -230,14 +218,6 @@ public class ScmConfiguration implements Configuration {
|
||||
this.defaultNamespaceStrategy = other.defaultNamespaceStrategy;
|
||||
}
|
||||
|
||||
public Set<String> getAdminGroups() {
|
||||
return adminGroups;
|
||||
}
|
||||
|
||||
public Set<String> getAdminUsers() {
|
||||
return adminUsers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the complete base url of the scm-manager including the context path.
|
||||
* For example http://localhost:8080/scm
|
||||
@@ -381,14 +361,6 @@ public class ScmConfiguration implements Configuration {
|
||||
return skipFailedAuthenticators;
|
||||
}
|
||||
|
||||
public void setAdminGroups(Set<String> adminGroups) {
|
||||
this.adminGroups = adminGroups;
|
||||
}
|
||||
|
||||
public void setAdminUsers(Set<String> adminUsers) {
|
||||
this.adminUsers = adminUsers;
|
||||
}
|
||||
|
||||
public void setAnonymousAccessEnabled(boolean anonymousAccessEnabled) {
|
||||
this.anonymousAccessEnabled = anonymousAccessEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user