1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure projects are created as logged in user

This commit is contained in:
Nick O'Leary 2018-02-06 10:38:41 +00:00
parent 5fe5db603d
commit b4c8bf21d5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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);