mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Config Resources: Makes permission names publicly available
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user