Skip to content

Commit

Permalink
EPMRPP-95153 | Adjust permissions to project role (#4075)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian authored Oct 29, 2024
1 parent a914622 commit 9d16ede
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions app/src/common/utils/permissions/getRoleTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@ const messages = defineMessages({
},
});

export const getRoleTitle = (userRole, organizationRole, projectRole) => {
if (userRole === ADMINISTRATOR) {
return messages.adminRole;
}
if (organizationRole === MANAGER) {
return messages.managerRole;
}
export const getRoleTitle = (projectRole) => {
if (projectRole === EDITOR) {
return messages.editorRole;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const ProjectTeamListTableWrapped = ({
<span>n/a</span>
),
},
permissions: formatMessage(getRoleTitle(userRole, organizationRole, projectRole)),
permissions: formatMessage(getRoleTitle(projectRole)),
};
},
),
Expand Down

0 comments on commit 9d16ede

Please sign in to comment.