Skip to content

Commit

Permalink
remove restriction on autonomy_level (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk authored Apr 9, 2024
1 parent 7a5b4c5 commit 4b170ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pages/TeamDetail/TeamDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ const TeamDetail = () => {

const isTeamManager = useCallback(() => {
const teamManagers = (teamDetailData && (teamDetailData.team as Team).managers) ?? []
const autonomy_level = (teamDetailData && (teamDetailData.team as Team).autonomy_level) ?? ''
if (autonomy_level !== 'MANAGED') return false
return teamManagers?.some((manager) => manager.principal_name.toLowerCase() === tokenData?.email.toLowerCase())
}, [tokenData, teamDetailData])

Expand Down

0 comments on commit 4b170ee

Please sign in to comment.