Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/triggerdotdev/trigger.dev
/ useHasAdminAccess
Function
useHasAdminAccess
apps/webapp/app/hooks/useUser.ts:30–34 ·
view source on GitHub ↗
(matches?: UIMatch[])
Source
from the content-addressed store, hash-verified
28
}
29
30
export
function
useHasAdminAccess(matches?: UIMatch[]): boolean {
31
const
user = useOptionalUser(matches);
32
33
return
Boolean(user?.admin);
34
}
Callers
1
AdminDebugTooltip
Function · 0.90
Calls
1
useOptionalUser
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…