( userId: string, organizationId: string )
| 431 | * @returns Promise<boolean> - True if the user is an owner or admin of the organization |
| 432 | */ |
| 433 | export async function isOrganizationOwnerOrAdmin( |
| 434 | userId: string, |
| 435 | organizationId: string |
| 436 | ): Promise<boolean> { |
| 437 | try { |
| 438 | return await isOrganizationAdminOrOwner(userId, organizationId) |
| 439 | } catch (error) { |
| 440 | logger.error('Error checking organization ownership/admin status:', error) |
| 441 | return false |
| 442 | } |
| 443 | } |
no test coverage detected