Skip to content

Commit 5cd044e

Browse files
committed
Check account existence using profile card
This is required for single user servers
1 parent 75c0e11 commit 5cd044e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/models/account-manager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ class AccountManager {
8383
*/
8484
accountExists (accountName) {
8585
let accountUri
86-
let rootAclPath
86+
let cardPath
8787

8888
try {
8989
accountUri = this.accountUriFor(accountName)
9090
accountUri = url.parse(accountUri).hostname
9191

92-
rootAclPath = url.resolve('/', this.store.suffixAcl)
92+
cardPath = url.resolve('/', this.pathCard)
9393
} catch (err) {
9494
return Promise.reject(err)
9595
}
9696

97-
return this.accountUriExists(accountUri, rootAclPath)
97+
return this.accountUriExists(accountUri, cardPath)
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)