mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add logger
This commit is contained in:
@@ -9,6 +9,7 @@ export async function getUserProjectFromId(project_id: string, user: AuthContext
|
||||
return project;
|
||||
} else {
|
||||
if (!user?.logged) return;
|
||||
if (!project_id) return;
|
||||
const project = await ProjectModel.findById(project_id);
|
||||
if (!project) return;
|
||||
const [hasAccess, role] = await hasAccessToProject(user.id, project_id, project);
|
||||
|
||||
Reference in New Issue
Block a user