mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-16 04:57:52 +00:00
add basic org policy check in middleware
This commit is contained in:
17
server/lib/checkOrgAccessPolicy.ts
Normal file
17
server/lib/checkOrgAccessPolicy.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Org, User } from "@server/db";
|
||||
|
||||
type CheckOrgAccessPolicyProps = {
|
||||
orgId?: string;
|
||||
org?: Org;
|
||||
userId?: string;
|
||||
user?: User;
|
||||
};
|
||||
|
||||
export async function checkOrgAccessPolicy(
|
||||
props: CheckOrgAccessPolicyProps
|
||||
): Promise<{
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}> {
|
||||
return { success: true };
|
||||
}
|
||||
Reference in New Issue
Block a user