fix: mengabaikan non-active project ketika assign member
This commit is contained in:
@@ -541,6 +541,9 @@ class ProjectService {
|
||||
if (!project) {
|
||||
return error(new NotFoundError("Project not found"));
|
||||
}
|
||||
if (project.status !== "active") {
|
||||
return error(new ConflictError("Cannot assign member to a non-active project"));
|
||||
}
|
||||
|
||||
const user = await projectRepository.findUserByIdAndActive(id_user);
|
||||
if (!user) {
|
||||
|
||||
Reference in New Issue
Block a user