From b4c8bf21d5f387a232f1a74cc2a2b204c10f0a4f Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 6 Feb 2018 10:38:41 +0000 Subject: [PATCH] Ensure projects are created as logged in user --- red/runtime/storage/localfilesystem/projects/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/runtime/storage/localfilesystem/projects/index.js b/red/runtime/storage/localfilesystem/projects/index.js index 53a46a067..b30dd18d5 100644 --- a/red/runtime/storage/localfilesystem/projects/index.js +++ b/red/runtime/storage/localfilesystem/projects/index.js @@ -341,7 +341,7 @@ function createProject(user, metadata) { metadata.files.oldCredentials = credentialsFile; metadata.files.credentialSecret = currentEncryptionKey; } - return Projects.create(null,metadata).then(function(p) { + return Projects.create(user, metadata).then(function(p) { return setActiveProject(user, p.name); }).then(function() { return getProject(user, metadata.name);