MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / isAdmin

Function isAdmin

packages/maintenance/src/import-users.ts:37–42  ·  view source on GitHub ↗
(role: SlackRole)

Source from the content-addressed store, hash-verified

35};
36
37const isAdmin = (role: SlackRole): boolean => {
38 if (role === 'Admin') return true;
39 if (role === 'Owner') return true;
40 if (role === 'Primary Owner') return true;
41 return false;
42};
43
44const isBot = (role: SlackRole): boolean => {
45 if (role === 'Bot') return true;

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected