(role: string)
| 80 | * there is only one place to be right about it. |
| 81 | */ |
| 82 | export const isPrivileged = (role: string): boolean => |
| 83 | role |
| 84 | .split(",") |
| 85 | .map((part) => part.trim()) |
| 86 | .some((part) => part === "owner" || part === "admin"); |
| 87 | |
| 88 | /** |
| 89 | * Authorize the caller as an owner/admin OF THE INSTANCE'S ORGANIZATION. |
no outgoing calls
no test coverage detected