Skip to content

Commit 29d0283

Browse files
Merge pull request #1057 from topcoder-platform/PM-1064
PM- 1064 Fix admin role var
2 parents 150e438 + 2920614 commit 29d0283

File tree

1 file changed

+1
-1
lines changed
  • src/apps/copilots/src/pages/copilot-opportunity-list

1 file changed

+1
-1
lines changed

src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const CopilotOpportunityList: FC<{}> = () => {
106106

107107
const { profile }: ProfileContextData = useContext(profileContext)
108108
const isAdminOrPM: boolean = useMemo(
109-
() => !!profile?.roles?.some(role => role === UserRole.tcaAdmin || role === UserRole.projectManager),
109+
() => !!profile?.roles?.some(role => role === UserRole.administrator || role === UserRole.projectManager),
110110
[profile],
111111
)
112112

0 commit comments

Comments
 (0)