mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
Fix forge returning null on empty fetch
Closes #184. It got broken because of a9c4a5409e
This commit is contained in:
parent
bc3b8541ab
commit
07cbe984ae
@ -74,9 +74,9 @@
|
||||
*/
|
||||
return this.forge().fetch().then(function (user) {
|
||||
|
||||
_.each(user.attributes, function (value, key, list) {
|
||||
if (user) {
|
||||
fail = true;
|
||||
});
|
||||
}
|
||||
|
||||
if (fail) {
|
||||
return when.reject(new Error('A user is already registered. Only one user for now!'));
|
||||
@ -167,4 +167,4 @@
|
||||
Users: Users
|
||||
};
|
||||
|
||||
}());
|
||||
}());
|
||||
|
Loading…
Reference in New Issue
Block a user