Skip to content

Commit fc93578

Browse files
committed
fix: show request copilot for PMs
1 parent 0b819d7 commit fc93578

File tree

1 file changed

+2
-2
lines changed
  • src/components/ChallengesComponent

1 file changed

+2
-2
lines changed

src/components/ChallengesComponent/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { PROJECT_ROLES, PROJECT_STATUS, COPILOTS_URL } from '../../config/consta
1111
import { PrimaryButton, OutlineButton } from '../Buttons'
1212
import ChallengeList from './ChallengeList'
1313
import styles from './ChallengesComponent.module.scss'
14-
import { checkAdmin, checkReadOnlyRoles, checkAdminOrCopilot } from '../../util/tc'
14+
import { checkAdmin, checkReadOnlyRoles, checkAdminOrCopilot, checkManager } from '../../util/tc'
1515

1616
const ChallengesComponent = ({
1717
challenges,
@@ -94,7 +94,7 @@ const ChallengesComponent = ({
9494
className={styles.btnOutline}
9595
/>
9696
)}
97-
{checkAdmin(auth.token) && (
97+
{(checkAdmin(auth.token) || checkManager(auth.token)) && (
9898
<OutlineButton
9999
text='Request Copilot'
100100
type={'info'}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy