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

Function _canAccess

client/src/components/Sidebar.jsx:39–41  ·  view source on GitHub ↗
(role, teamRoles)

Source from the content-addressed store, hash-verified

37 const dispatch = useDispatch();
38
39 const _canAccess = (role, teamRoles) => {
40 return canAccess(role, user.data.id, teamRoles);
41 };
42
43 const _getActiveMenu = () => {
44 return window.location.pathname.split("/")[1];

Callers 1

SidebarFunction · 0.70

Calls 1

canAccessFunction · 0.85

Tested by

no test coverage detected