mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix members
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineEventHandler(async event => {
|
||||
const project = await ProjectModel.findOne({ _id: project_id });
|
||||
if (!project) return;
|
||||
|
||||
const [hasAccess] = await hasAccessToProject(user.id, project_id, project)
|
||||
const [hasAccess] = await hasAccessToProject(user.id, project_id, user.user.email, project)
|
||||
if (!hasAccess) return;
|
||||
|
||||
const query = getQuery(event);
|
||||
|
||||
Reference in New Issue
Block a user