(role, teamData)
| 109 | }, []); |
| 110 | |
| 111 | const canUserAccess = (role, teamData) => { |
| 112 | if (teamData) { |
| 113 | return canAccess(role, user.id, teamData.TeamRoles); |
| 114 | } |
| 115 | |
| 116 | return canAccess(role, user.id, team.TeamRoles); |
| 117 | }; |
| 118 | |
| 119 | const isOnDashboard = () => location.pathname.startsWith("/dashboard/"); |
| 120 | const isOnConnections = () => location.pathname.startsWith("/connections"); |