({
keyWithSearchPermissions,
accountId,
userId,
}: {
keyWithSearchPermissions: string;
accountId: string;
userId: string;
})
| 32 | } |
| 33 | |
| 34 | export function createUserKey({ |
| 35 | keyWithSearchPermissions, |
| 36 | accountId, |
| 37 | userId, |
| 38 | }: { |
| 39 | keyWithSearchPermissions: string; |
| 40 | accountId: string; |
| 41 | userId: string; |
| 42 | }) { |
| 43 | return createKey({ |
| 44 | keyWithSearchPermissions, |
| 45 | filter_by: `accountId:=${accountId} && (is_public:=true || accessible_to:=${userId})`, |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | export function createAccountKey({ |
| 50 | keyWithSearchPermissions, |
no test coverage detected