Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
Sidebar
Function · 0.70
Calls
1
canAccess
Function · 0.85
Tested by
no test coverage detected