MaiXinRong 2 years ago
parent
commit
b1c0f1799c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/sub_project.js

+ 1 - 1
app/service/sub_project.js

@@ -79,7 +79,7 @@ module.exports = app => {
             const permission = await this.ctx.service.subProjPermission.getUserPermission(pid, uid);
             const permission = await this.ctx.service.subProjPermission.getUserPermission(pid, uid);
             result = result.filter(x => {
             result = result.filter(x => {
                 if (!x.is_folder && !x.management) return false;
                 if (!x.is_folder && !x.management) return false;
-                if (x.is_folder) true;
+                if (x.is_folder) return true;
                 if (admin) {
                 if (admin) {
                     x.permission = adminPermission.file_permission;
                     x.permission = adminPermission.file_permission;
                     x.manage_permission = adminPermission.manage_permission;
                     x.manage_permission = adminPermission.manage_permission;