mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 14:26:39 +00:00
remove lucia
This commit is contained in:
@@ -95,7 +95,7 @@ export async function createResource(req: Request, res: Response, next: NextFunc
|
||||
if (req.userOrgRoleId != superuserRole[0].roleId) {
|
||||
// make sure the user can access the resource
|
||||
await db.insert(userResources).values({
|
||||
userId: req.user?.id!,
|
||||
userId: req.user?.userId!,
|
||||
resourceId: newResource[0].resourceId,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user