mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-30 13:20:24 +08:00
fix: project public show bug
This commit is contained in:
parent
bf397545b7
commit
f0de505555
@ -386,7 +386,7 @@ class groupController extends baseController {
|
||||
if(result[i].role !== 'member'){
|
||||
newResult.unshift(result[i]);
|
||||
}else{
|
||||
let publicCount = await projectInst.countWithPublic(result[i].id);
|
||||
let publicCount = await projectInst.countWithPublic(result[i]._id);
|
||||
if(publicCount > 0){
|
||||
newResult.push(result[i]);
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user