mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 22:49:27 +02:00
remove lucia
This commit is contained in:
parent
f14fb90ab6
commit
99d6cababa
39 changed files with 234 additions and 167 deletions
|
@ -55,8 +55,7 @@ export enum ActionsEnum {
|
|||
}
|
||||
|
||||
export async function checkUserActionPermission(actionId: string, req: Request): Promise<boolean> {
|
||||
const userId = req.user?.id;
|
||||
|
||||
const userId = req.user?.userId;
|
||||
if (!userId) {
|
||||
throw createHttpError(HttpCode.UNAUTHORIZED, 'User not authenticated');
|
||||
}
|
||||
|
@ -116,4 +115,4 @@ export async function checkUserActionPermission(actionId: string, req: Request):
|
|||
console.error('Error checking user action permission:', error);
|
||||
throw createHttpError(HttpCode.INTERNAL_SERVER_ERROR, 'Error checking action permission');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue