fixed role created from repository in production mode
This commit is contained in:
parent
6d492ae919
commit
026747dcaa
|
@ -53,7 +53,7 @@ public class AaiRoleMappingService implements RoleMappingService {
|
|||
@Override
|
||||
public String getRoleIdByRepoId(String repoId) {
|
||||
String roleId = "";
|
||||
String prefix = production ? null : "beta." + "datasource";
|
||||
String prefix = (production ? "" : "beta.") + "datasource";
|
||||
if (repoId != null) {
|
||||
roleId = createRepoRoleName(prefix, repoId);
|
||||
return roleId;
|
||||
|
|
Loading…
Reference in New Issue