MCPcopy
hub / github.com/chartbrew/chartbrew / _canAccess

Function _canAccess

client/src/components/Navbar.jsx:80–85  ·  view source on GitHub ↗
(role, teamData)

Source from the content-addressed store, hash-verified

78 }, [dispatch]);
79
80 const _canAccess = (role, teamData) => {
81 if (teamData) {
82 return canAccess(role, user.id, teamData.TeamRoles);
83 }
84 return canAccess(role, user.id, team.TeamRoles);
85 };
86
87 const _onDropdownAction = (key) => {
88 switch (key) {

Callers 1

NavbarContainerFunction · 0.70

Calls 1

canAccessFunction · 0.85

Tested by

no test coverage detected