Method
canAuthAccessChannel
(authId: string, channelId: string)
Source from the content-addressed store, hash-verified
| 63 | } |
| 64 | |
| 65 | static async canAuthAccessChannel(authId: string, channelId: string) { |
| 66 | return await prisma.auths.findFirst({ |
| 67 | where: { |
| 68 | id: authId, |
| 69 | users: { |
| 70 | some: { |
| 71 | account: { channels: { some: { id: channelId } } }, |
| 72 | }, |
| 73 | }, |
| 74 | }, |
| 75 | }); |
| 76 | } |
| 77 | |
| 78 | static async canAuthAccessCommunity(authId: string, communityId: string) { |
| 79 | return await prisma.auths.findFirst({ |
Tested by
no test coverage detected