fixed role created from repository in production mode

This commit is contained in:
Konstantinos Spyrou 2021-07-19 09:07:45 +00:00
parent 6d492ae919
commit 026747dcaa
1 changed files with 1 additions and 1 deletions

View File

@ -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;