@tiledesk/tiledesk-server 2.2.29 → 2.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/routes/project.js +6 -6
package/package.json
CHANGED
package/routes/project.js
CHANGED
@@ -382,21 +382,21 @@ router.get('/', [passport.authenticate(['basic', 'jwt'], { session: false }), va
|
|
382
382
|
|
383
383
|
|
384
384
|
//organization: if third sub domain iterate and put only project with organization==subdomain otherwise remove projects with org
|
385
|
-
winston.
|
385
|
+
winston.debug("orgUtil.ORGANIZATION_ENABLED: " + orgUtil.ORGANIZATION_ENABLED);
|
386
386
|
if (orgUtil.ORGANIZATION_ENABLED == true ) {
|
387
387
|
|
388
388
|
// winston.info("project_users", project_users);
|
389
|
-
winston.
|
389
|
+
winston.debug("project_users.length:"+ project_users.length);
|
390
390
|
|
391
391
|
let org = orgUtil.getOrg(req);
|
392
|
-
winston.
|
392
|
+
winston.debug("org:"+ org);
|
393
393
|
|
394
394
|
if (org!=undefined) {
|
395
|
-
winston.
|
395
|
+
winston.debug("org!=undefined");
|
396
396
|
|
397
397
|
var project_users = project_users.filter(function (projectUser) {
|
398
398
|
if (projectUser.id_project.organization && projectUser.id_project.organization === org ) {
|
399
|
-
winston.
|
399
|
+
winston.debug("keep");
|
400
400
|
return true;
|
401
401
|
}
|
402
402
|
});
|
@@ -430,7 +430,7 @@ router.get('/', [passport.authenticate(['basic', 'jwt'], { session: false }), va
|
|
430
430
|
}*/
|
431
431
|
}
|
432
432
|
} else {
|
433
|
-
winston.
|
433
|
+
winston.debug("no")
|
434
434
|
}
|
435
435
|
|
436
436
|
|