Config Resources: Makes permission names publicly available

This commit is contained in:
Johannes Schnatterer
2018-08-02 14:16:26 +02:00
parent 988dfbd689
commit 62087521be
4 changed files with 16 additions and 7 deletions

View File

@@ -48,6 +48,8 @@ import javax.xml.bind.annotation.XmlTransient;
public class HgConfig extends RepositoryConfig
{
public static final String PERMISSION = "hg";
/**
* Constructs ...
*
@@ -227,6 +229,6 @@ public class HgConfig 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 "hg";
return PERMISSION;
}
}