diff --git a/app/src/common/utils/permissions/getRoleTitle.js b/app/src/common/utils/permissions/getRoleTitle.js index edc3039d4e..58b0367e42 100644 --- a/app/src/common/utils/permissions/getRoleTitle.js +++ b/app/src/common/utils/permissions/getRoleTitle.js @@ -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; } diff --git a/app/src/pages/organization/projectTeamPage/projectTeamListTable/projectTeamListTable.jsx b/app/src/pages/organization/projectTeamPage/projectTeamListTable/projectTeamListTable.jsx index e07c74fcbe..e4dd7698cf 100644 --- a/app/src/pages/organization/projectTeamPage/projectTeamListTable/projectTeamListTable.jsx +++ b/app/src/pages/organization/projectTeamPage/projectTeamListTable/projectTeamListTable.jsx @@ -129,7 +129,7 @@ const ProjectTeamListTableWrapped = ({ n/a ), }, - permissions: formatMessage(getRoleTitle(userRole, organizationRole, projectRole)), + permissions: formatMessage(getRoleTitle(projectRole)), }; }, ),