Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShipSecAI/studio
/ hasAdminRole
Function
hasAdminRole
frontend/src/utils/auth.ts:20–22 ·
view source on GitHub ↗
(roles: string[])
Source
from the content-addressed store, hash-verified
18
* Check
if
a user has admin role
19
*/
20
export
function
hasAdminRole(roles: string[]): boolean {
21
return
roles.some((role) => normalizeRole(role) ===
'ADMIN'
);
22
}
Callers
6
AppLayout
Function · 0.90
ApiKeysManager
Function · 0.90
AnalyticsSettingsPage
Function · 0.90
SecretsManager
Function · 0.90
WorkflowList
Function · 0.90
WorkflowBuilderContent
Function · 0.90
Calls
1
normalizeRole
Function · 0.85
Tested by
no test coverage detected