Skip to content

Commit

Permalink
Display teams urn if imported
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Mar 5, 2024
1 parent 3dc0515 commit 6a50ec2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/utils/UserRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const allowedToRenewUserRole = (user, userRole) => {
}
}

export const urnFromRole = (groupUrnPrefix, role) => `${groupUrnPrefix}:${role.identifier}:${role.shortName}`;
export const urnFromRole = (groupUrnPrefix, role) => role.teamsOrigin ? role.urn : `${groupUrnPrefix}:${role.identifier}:${role.shortName}`;

export const markAndFilterRoles = (user, allRoles, locale, multiple, separator) => {
allRoles.forEach(role => {
Expand Down
1 change: 0 additions & 1 deletion server/src/main/java/access/model/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public class Role implements Serializable, Provisionable {
@Column(name = "teams_origin")
private boolean teamsOrigin;


@Column(name = "identifier")
private String identifier;

Expand Down

0 comments on commit 6a50ec2

Please sign in to comment.