mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
Config Resources: Makes permission names publicly available
This commit is contained in:
@@ -48,7 +48,10 @@ import javax.xml.bind.annotation.XmlTransient;
|
||||
@XmlRootElement(name = "config")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class GitConfig extends RepositoryConfig {
|
||||
|
||||
|
||||
@SuppressWarnings("WeakerAccess") // This might be needed for permission checking
|
||||
public static final String PERMISSION = "git";
|
||||
|
||||
@XmlElement(name = "gc-expression")
|
||||
private String gcExpression;
|
||||
|
||||
@@ -65,6 +68,6 @@ public class GitConfig extends RepositoryConfig {
|
||||
@XmlTransient // Only for permission checks, don't serialize to XML
|
||||
public String getId() {
|
||||
// Don't change this without migrating SCM permission configuration!
|
||||
return "git";
|
||||
return PERMISSION;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user